ui.go 591 B

12345678910111213141516171819202122232425
  1. /*
  2. * @Author: LinkLeong link@icewhale.com
  3. * @Date: 2022-06-23 17:27:43
  4. * @LastEditors: LinkLeong
  5. * @LastEditTime: 2022-06-23 17:27:48
  6. * @FilePath: /CasaOS/route/ui.go
  7. * @Description:
  8. * @Website: https://www.casaos.io
  9. * Copyright (c) 2022 by icewhale, All Rights Reserved.
  10. */
  11. package route
  12. import (
  13. "html/template"
  14. "github.com/IceWhaleTech/CasaOS/web"
  15. "github.com/gin-gonic/gin"
  16. )
  17. func WebUIHome(c *gin.Context) {
  18. c.Writer.Header().Set("Content-Type", "text/html; charset=utf-8")
  19. index, _ := template.ParseFS(web.Static, "index.html")
  20. index.Execute(c.Writer, nil)
  21. return
  22. }