ch prefix
This commit is contained in:
@@ -31,9 +31,9 @@ var resources = []Resource{
|
||||
// Register mounts templates, static assets and all dashboard page routes.
|
||||
func Register(router *gin.Engine) {
|
||||
router.LoadHTMLGlob("web/admin/templates/**/*.html")
|
||||
router.Static("/admin/assets", "./web/admin/assets")
|
||||
router.Static("/M0n1t0r/assets", "./web/admin/assets")
|
||||
|
||||
admin := router.Group("/admin")
|
||||
admin := router.Group("/M0n1t0r")
|
||||
|
||||
admin.GET("/login", appresult.AdminGuestOnly(), func(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "pages/login", gin.H{
|
||||
@@ -96,7 +96,7 @@ func Register(router *gin.Engine) {
|
||||
}
|
||||
|
||||
router.NoRoute(func(c *gin.Context) {
|
||||
if strings.HasPrefix(c.Request.URL.Path, "/admin") {
|
||||
if strings.HasPrefix(c.Request.URL.Path, "/M0n1t0r") {
|
||||
c.HTML(http.StatusNotFound, "pages/404", gin.H{
|
||||
"Title": "Page not found",
|
||||
"Page": "404",
|
||||
|
||||
Reference in New Issue
Block a user