1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

feat(global): add templates support ('apps') (#154)

This commit is contained in:
Anthony Lapenna 2016-08-23 18:09:14 +12:00 committed by GitHub
parent faccf2a651
commit 1c8aa35479
15 changed files with 366 additions and 13 deletions

View file

@ -25,6 +25,9 @@ func (a *api) newHandler(settings *Settings) http.Handler {
mux.HandleFunc("/settings", func(w http.ResponseWriter, r *http.Request) {
settingsHandler(w, r, settings)
})
mux.HandleFunc("/templates", func(w http.ResponseWriter, r *http.Request) {
templatesHandler(w, r, a.templatesURL)
})
return CSRFHandler(newCSRFWrapper(mux))
}