Fix spelling from last commit

This commit is contained in:
2024-12-31 15:33:46 +01:00
parent ee21f00d3f
commit 225749f9b7

View File

@ -60,7 +60,7 @@ func (app *application) createElection(w http.ResponseWriter, r *http.Request) {
}
}
w.Header().Set("Location", fmt.Sprintf("/elections/%v", electionId))
w.Header().Set("Location", fmt.Sprintf("/election/%v", electionId))
w.Write(res)
}