fix errors and test pdf

This commit is contained in:
2024-08-26 23:06:29 +02:00
parent 08fb20d7be
commit 491f482fc7
3 changed files with 23 additions and 10 deletions

View File

@ -53,7 +53,7 @@ func (app *application) writeJSON(
}
func (app *application) badRequest(w http.ResponseWriter, r *http.Request, err error) error {
var payload jsonResponse
var payload JSONResponse
payload.OK = false
payload.Message = err.Error()
@ -70,7 +70,7 @@ func (app *application) badRequest(w http.ResponseWriter, r *http.Request, err e
}
func (app *application) invalidCredentials(w http.ResponseWriter) error {
var payload jsonResponse
var payload JSONResponse
payload.OK = false
payload.Message = "invalid authentication credentials"