Files
quyun-v2/backend/app/http/super/static.go

21 lines
372 B
Go

package super
import (
"github.com/gofiber/fiber/v3"
)
// @provider
type staticController struct{}
// Static
//
// @Tags Super
// @Router /super/*
func (ctl *staticController) static(ctx fiber.Ctx) error {
param := ctx.Params("*")
if param == "" {
param = "index.html"
}
return ctx.SendFile("/home/rogee/Projects/quyun_v2/frontend/superadmin/dist/" + param)
}