summaryrefslogtreecommitdiffstats
path: root/cmd/web/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web/routes.go')
-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
-}