From 0f951dcf029d4af284467543a3afdf5bf6581a20 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 23 Apr 2024 11:16:38 +0100 Subject: switched to Django --- cmd/web/routes.go | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 cmd/web/routes.go (limited to 'cmd/web/routes.go') 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 -} -- cgit v1.2.3