[web] 删除不再使用的文件并新增超时处理接口

This commit is contained in:
2025-01-03 20:51:57 +08:00
parent c3c6ca7281
commit 682679b63a
29 changed files with 15 additions and 141 deletions

View File

@ -59,7 +59,12 @@ func OnGetStaticFile(ctx context.Context, c *app.RequestContext) {
} else if strings.HasSuffix(fp, ".svg") {
contentType = "image/svg+xml"
}
log.Info("Get file: ", fp, " with content type: ", contentType)
c.Data(200, contentType, data)
}
func OnGetTimeout(ctx context.Context, c *app.RequestContext) {
log.Info("Timeout")
c.JSON(200, "Timeout")
ctx.Done()
}