mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
[WIP] theme selector
This commit is contained in:
parent
a7e52809dc
commit
11e164496b
74 changed files with 363 additions and 38 deletions
|
@ -75,9 +75,11 @@ func RegisterEndpoints(rt *env.Runtime, s *store.Store) {
|
|||
//**************************************************
|
||||
|
||||
AddPublic(rt, "meta", []string{"GET", "OPTIONS"}, nil, meta.Meta)
|
||||
AddPublic(rt, "version", []string{"GET", "OPTIONS"}, nil, func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte(rt.Product.Version))
|
||||
})
|
||||
AddPublic(rt, "meta/themes", []string{"GET", "OPTIONS"}, nil, meta.Themes)
|
||||
AddPublic(rt, "version", []string{"GET", "OPTIONS"}, nil,
|
||||
func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte(rt.Product.Version))
|
||||
})
|
||||
|
||||
//**************************************************
|
||||
// Non-secure public service routes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue