You've already forked CasaOS
mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-07-12 23:50:14 +02:00
暂存
This commit is contained in:
14
route/ui.go
Normal file
14
route/ui.go
Normal file
@ -0,0 +1,14 @@
|
||||
package route
|
||||
|
||||
import (
|
||||
"github.com/IceWhaleTech/CasaOS/web"
|
||||
"github.com/gin-gonic/gin"
|
||||
"html/template"
|
||||
)
|
||||
|
||||
func WebUIHome(c *gin.Context) {
|
||||
c.Writer.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
index, _ := template.ParseFS(web.Static, "index.html")
|
||||
index.Execute(c.Writer, nil)
|
||||
return
|
||||
}
|
Reference in New Issue
Block a user