refactor: 调整主文件位置

This commit is contained in:
tbphp committed 2025-07-09 16:02:33 +08:00
1 parent 9bd32d5885
commit 51695c2245
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@ func registerFrontendRoutes(router *gin.Engine, buildFS embed.FS, indexPage []by
c.JSON(http.StatusMethodNotAllowed, gin.H{"error": "Method not allowed"})
})
router.Use(static.Serve("/", EmbedFolder(buildFS, "dist")))
router.Use(static.Serve("/", EmbedFolder(buildFS, "web/dist")))
router.NoRoute(func(c *gin.Context) {
if strings.HasPrefix(c.Request.RequestURI, "/api") || strings.HasPrefix(c.Request.RequestURI, "/proxy") {
c.JSON(http.StatusNotFound, gin.H{"error": "Not Found"})