Web rework & improved Git API #114

Merged
Jef Roosens merged 16 commits from restful-api into dev 2022-04-07 12:26:50 +02:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit 148ec3ab47 - Show all commits

View file

@ -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

View file

@ -231,6 +231,7 @@ pub fn (mut ctx Context) json<T>(status http.Status, j T) Result {
json_s := json.encode(j)
ctx.send_response_to_client('application/json', json_s)
return Result{}
}