summaryrefslogtreecommitdiffstats
path: root/cmd/web/routes.go
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-04-23 11:22:21 +0100
committerGitHub <noreply@github.com>2024-04-23 11:22:21 +0100
commitceca6fa956b21c43263e53c328d619c4ede21914 (patch)
treea48384210cdc168e3bd3ccff6d6d516eeed9e748 /cmd/web/routes.go
parent8b084e9fe7a5f3a04c32daf9a24f7f2cf67300f9 (diff)
parent0f951dcf029d4af284467543a3afdf5bf6581a20 (diff)
Merge pull request #22 from defencedigital/pyswitch
switched to Django
Diffstat (limited to '')
-rw-r--r--cmd/web/routes.go18
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
-}