feat(web): file() now supports HTTP byte range
All checks were successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/man Pipeline was successful
ci/woodpecker/pr/docker Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

This commit is contained in:
Jef Roosens 2022-08-12 17:11:44 +02:00
parent e7b45bf251
commit cc5df95a1a
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
2 changed files with 50 additions and 16 deletions

View file

@ -13,7 +13,7 @@ import response { new_response }
// server is still responsive.
['/health'; get]
pub fn (mut app App) healthcheck() web.Result {
return app.json(http.Status.ok, new_response('Healthy.'))
return app.json(.ok, new_response('Healthy.'))
}
// get_repo_file handles all Pacman-related routes. It returns both the