feat: implement Modrinth modpack importer (.mrpack)

This commit is contained in:
2026-01-04 14:47:24 +03:00
parent 275c1f2d50
commit 192ec80010
3 changed files with 187 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ func (h *ModpackHandler) ImportModpack(w http.ResponseWriter, r *http.Request) {
return
}
imp = importer.NewCurseForgeImporter(storagePath, apiKey)
case "modrinth":
imp = importer.NewModrinthImporter(storagePath)
default:
http.Error(w, "Invalid importer type", http.StatusBadRequest)
return