admin.go 273 B

1234567891011121314151617
  1. package admin
  2. import (
  3. . "jy/router"
  4. qu "qfw/util"
  5. )
  6. var Se = qu.SimpleEncrypt{Key: "topnet@extract"}
  7. func init() {
  8. admin := Router.Group("/admin")
  9. admin.Use(AuthMiddleWare())
  10. {
  11. admin.Static("/res", "./web/res")
  12. }
  13. Router.LoadHTMLGlob("web/templates/admin/*")
  14. }