diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eaf477..f95351f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Better environment variable support * Each env var can now be provided from a file by appending it with `_FILE` & passing the path to the file as value +* Revamped web framework + * All routes now return proper JSON where applicable & the correct status + codes ## Added diff --git a/src/web/web.v b/src/web/web.v index 23ae746..6e07aea 100644 --- a/src/web/web.v +++ b/src/web/web.v @@ -231,6 +231,7 @@ pub fn (mut ctx Context) json(status http.Status, j T) Result { json_s := json.encode(j) ctx.send_response_to_client('application/json', json_s) + return Result{} }