diff options
author | Yulqen <246857+yulqen@users.noreply.github.com> | 2024-04-23 11:22:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 11:22:21 +0100 |
commit | ceca6fa956b21c43263e53c328d619c4ede21914 (patch) | |
tree | a48384210cdc168e3bd3ccff6d6d516eeed9e748 /cmd/web/routes.go | |
parent | 8b084e9fe7a5f3a04c32daf9a24f7f2cf67300f9 (diff) | |
parent | 0f951dcf029d4af284467543a3afdf5bf6581a20 (diff) |
Merge pull request #22 from defencedigital/pyswitch
switched to Django
Diffstat (limited to '')
-rw-r--r-- | cmd/web/routes.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cmd/web/routes.go b/cmd/web/routes.go deleted file mode 100644 index 58a351a..0000000 --- a/cmd/web/routes.go +++ /dev/null @@ -1,18 +0,0 @@ -package main - -import "net/http" - -func (app *application) routes() *http.ServeMux { - mux := http.NewServeMux() - - fileServer := http.FileServer(http.Dir("./ui/static/")) - mux.Handle("/static/", http.StripPrefix("/static", fileServer)) - - mux.HandleFunc("/", app.home) - mux.HandleFunc("/organisation/list", app.listOrganisations) - mux.HandleFunc("/organisation/view", app.organisationView) - mux.HandleFunc("/organisation/create", app.organisationCreate) - mux.HandleFunc("/operation/list", app.listOperations) - mux.HandleFunc("/person/list", app.listPersons) - return mux -} |