refactor(server): clean up server responses a bit

This commit is contained in:
Jef Roosens 2022-12-15 10:46:58 +01:00
parent 0727d0fd25
commit b634775ca3
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
3 changed files with 16 additions and 25 deletions

View file

@ -260,13 +260,6 @@ pub fn (mut ctx Context) redirect(url string) Result {
return Result{}
}
// not_found Send an not_found response
pub fn (mut ctx Context) not_found() Result {
ctx.send_custom_response(http_404) or {}
return Result{}
}
interface DbInterface {
db voidptr
}