Add index page and link to share more easily
This commit is contained in:
@ -22,6 +22,7 @@ func (app *application) routes() http.Handler {
|
||||
cached := alice.New(app.cacheStatic)
|
||||
mux.Handle("GET /static/", cached.Then(http.FileServerFS(ui.Files)))
|
||||
|
||||
mux.HandleFunc("GET /", app.indexPage)
|
||||
mux.HandleFunc("GET /election/create", app.createElectionPage)
|
||||
mux.HandleFunc("GET /election/{id}", app.getElectionPage)
|
||||
|
||||
|
Reference in New Issue
Block a user