主要更新: - 更新 go.mod/go.sum 依赖 - 重新生成 Ent ORM 代码 - 更新 Wire 依赖注入配置 - 添加 docker-compose.override.yml 到 .gitignore - 更新 README 文档(Simple Mode 说明和已知问题) - 清理调试日志 - 其他代码优化和格式修复
21 lines
333 B
Go
21 lines
333 B
Go
//go:build !embed
|
|
|
|
package web
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func ServeEmbeddedFrontend() gin.HandlerFunc {
|
|
return func(c *gin.Context) {
|
|
c.String(http.StatusNotFound, "Frontend not embedded. Build with -tags embed to include frontend.")
|
|
c.Abort()
|
|
}
|
|
}
|
|
|
|
func HasEmbeddedFrontend() bool {
|
|
return false
|
|
}
|