changed param logic & add more routes

This commit is contained in:
2026-09-04 18:08:20 +08:00
parent 86cde9bb97
commit a28c1dec9b
14 changed files with 269 additions and 12 deletions

View File

@@ -41,7 +41,6 @@ func application(c *fiber.Ctx) error {
url := fmt.Sprintf("%s/api/application", upstream.BaseUrl())
data, err := upstream.Fetch(url, headers)
if err != nil {
// fallback 到 cache
data, err = os.ReadFile(cachePath)
if err != nil {
return c.Status(500).SendString("no cache available")