mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-03-30 08:01:25 +00:00
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
|
|
}
|