refactor(handler,server): disable SubmitApplication endpoint, replaced by POST /tasks

- Comment out SubmitApplication handler method

- Comment out route registration in server.go (interface + router + placeholder)

- Comment out related handler tests

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
dailz
2026-04-16 15:15:55 +08:00
parent 36d842350c
commit 7c374f4fd5
4 changed files with 20 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ func TestAllRoutesRegistered(t *testing.T) {
{"GET", "/api/v1/applications/:id"},
{"PUT", "/api/v1/applications/:id"},
{"DELETE", "/api/v1/applications/:id"},
{"POST", "/api/v1/applications/:id/submit"},
// {"POST", "/api/v1/applications/:id/submit"}, // [已禁用] 已被 POST /tasks 取代
}
routeMap := map[string]bool{}