Add migrations and continue implementing election insertion
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func (app *application) serverError(w http.ResponseWriter, r *http.Request, err error) {
|
||||
app.logger.Error(err.Error())
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
var response = api.ErrorResponse{
|
||||
Code: http.StatusInternalServerError,
|
||||
|
Reference in New Issue
Block a user