Implement page to vote and fix trigger

This commit is contained in:
2025-01-17 16:48:38 +01:00
parent 62562272f1
commit 27d166dad6
4 changed files with 145 additions and 9 deletions

View File

@ -23,6 +23,7 @@ func (app *application) routes() http.Handler {
mux.Handle("GET /static/", cached.Then(http.FileServerFS(ui.Files)))
mux.HandleFunc("GET /election/create", app.createElectionPage)
mux.HandleFunc("GET /election/{id}", app.getElectionPage)
api.HandlerWithOptions(app, api.StdHTTPServerOptions{
BaseRouter: mux,