Core

/app/controller/routes/theme.go (563 B)

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package routes

import (
"github.com/fasthttp/router"

"{{{ .Package }}}/app/controller/clib"
)

func themeRoutes(r *router.Router) {
r.GET("/theme", clib.ThemeList)
r.GET("/theme/{key}", clib.ThemeEdit)
r.POST("/theme/{key}", clib.ThemeSave)
r.GET("/theme/{key}/remove", clib.ThemeRemove){{{ if .HasModule "themecatalog" }}}

r.GET("/theme/color/{color}", clib.ThemeColor)
r.GET("/theme/color/edit", clib.ThemeColorEdit)
r.GET("/theme/palette/{palette}", clib.ThemePalette)
r.GET("/theme/palette/{palette}/{theme}", clib.ThemePaletteEdit){{{ end }}}
}