forked from vieter-v/vieter
feat(web): file() now supports HTTP byte range
This commit is contained in:
parent
e7b45bf251
commit
cc5df95a1a
2 changed files with 50 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue