feat: added a side bar
This commit is contained in:
@@ -110,7 +110,7 @@ func schedualHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func HomeHandler(w http.ResponseWriter, r *http.Request) {
|
||||
utils.Render(w, "dashboard/dashboard.html", map[string]interface{}{
|
||||
utils.Render(w, "dashboard.html", map[string]interface{}{
|
||||
"Title": "Admin Dashboard",
|
||||
"IsAuthenticated": false,
|
||||
"ActiveSection": "dashboard",
|
||||
@@ -167,6 +167,6 @@ func main() {
|
||||
// Poll routes (volunteer only)
|
||||
http.HandleFunc("/poll", volunteerMiddleware(handlers.PollHandler))
|
||||
|
||||
log.Println("Server started on localhost:8080")
|
||||
log.Println("Server started on http://localhost:8080")
|
||||
log.Fatal(http.ListenAndServe("0.0.0.0:8080", nil))
|
||||
}
|
||||
Reference in New Issue
Block a user