From fcf33d35dfefbb940fef067afa5a377e732c7b56 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sun, 5 Jul 2026 21:07:05 -0500 Subject: [PATCH] chore(api): remove /manifest backward-compat alias route (use /metadata) The /manifest GET+PUT routes were backward-compat aliases for the canonical /metadata routes. Completing the manifest->metadata migration (#752): drop the alias so /metadata is the single path. Handlers (GetRepoMetadata/UpdateRepoMetadata) are unchanged. The MCP already calls /metadata (mcp-mokogitea-api v1.4.2, gitea_metadata_get/update); the stale gitea_manifest_* tools only exist in older deployed MCP builds and drop out on redeploy. Refs #752 Claude-Session: https://claude.ai/code/session_01Wsno14cxE49MstXFs9G5KT --- routers/api/v1/api.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 855fac6acb..425b033c83 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -1543,8 +1543,6 @@ func Routes() *web.Router { }, reqAnyRepoReader()) m.Get("/metadata", repo.GetRepoMetadata) m.Put("/metadata", reqToken(), reqAdmin(), repo.UpdateRepoMetadata) - m.Get("/manifest", repo.GetRepoMetadata) // backward compat - m.Put("/manifest", reqToken(), reqAdmin(), repo.UpdateRepoMetadata) // MokoGitea badge engine m.Get("/badge/{type}.svg", repo.GetRepoBadge) m.Get("/issue_templates", reqRepoReader(unit.TypeCode), context.ReferencesGitRepo(), repo.GetIssueTemplates)