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

@@ -13,6 +13,7 @@ mod projects;
mod reports;
mod tags;
mod teams;
mod updates;
mod users;
mod version_creation;
mod version_file;
@@ -75,6 +76,10 @@ pub fn maven_config(cfg: &mut web::ServiceConfig) {
cfg.service(maven::version_file);
}
pub fn updates(cfg: &mut web::ServiceConfig) {
cfg.service(updates::forge_updates);
}
pub fn versions_config(cfg: &mut web::ServiceConfig) {
cfg.service(versions::versions_get);
cfg.service(version_creation::version_create);