Automatically generate updates.json for Forge mods (#298)

* Automatically generate updates.json for Forge mods

https://api.modrinth.com/updates/{id}/forge_updates.json serves a minimal update JSON for the Forge update checker

Closes #281

* Authenticate update JSON requests

Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
ramidzkh
2022-02-20 07:09:09 +11:00
committed by GitHub
parent d128f3e14e
commit 7c80b61666
4 changed files with 83 additions and 1 deletions

View File

@@ -283,6 +283,7 @@ async fn main() -> std::io::Result<()> {
.service(routes::index_get)
.service(routes::health_get)
.service(web::scope("maven").configure(routes::maven_config))
.service(web::scope("updates").configure(routes::updates))
.default_service(web::get().to(routes::not_found))
})
.bind(dotenv::var("BIND_ADDR").unwrap())?