1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

refactor: settings routes and actions

This commit is contained in:
Ferdinand Mütsch
2021-02-03 20:53:27 +01:00
parent a60c725d38
commit 4838300086
3 changed files with 184 additions and 153 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/muety/wakapi/utils"
"html/template"
"io/ioutil"
"net/http"
"path"
"strings"
)
@@ -16,6 +17,8 @@ func Init() {
loadTemplates()
}
type action func(w http.ResponseWriter, r *http.Request) (int, string, string)
var templates map[string]*template.Template
func loadTemplates() {