Add page for results
This commit is contained in:
@ -24,6 +24,7 @@ func (app *application) routes() http.Handler {
|
||||
|
||||
mux.HandleFunc("GET /", app.indexPage)
|
||||
mux.HandleFunc("GET /election/create", app.createElectionPage)
|
||||
mux.HandleFunc("GET /election/{id}/results", app.getElectionResultsPage)
|
||||
mux.HandleFunc("GET /election/{id}", app.getElectionPage)
|
||||
|
||||
api.HandlerWithOptions(app, api.StdHTTPServerOptions{
|
||||
|
Reference in New Issue
Block a user