forked from vieter-v/vieter
Updated changelog
parent
e5a630e990
commit
148ec3ab47
|
@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
* Better environment variable support
|
* Better environment variable support
|
||||||
* Each env var can now be provided from a file by appending it with `_FILE`
|
* Each env var can now be provided from a file by appending it with `_FILE`
|
||||||
& passing the path to the file as value
|
& passing the path to the file as value
|
||||||
|
* Revamped web framework
|
||||||
|
* All routes now return proper JSON where applicable & the correct status
|
||||||
|
codes
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
|
||||||
|
|
|
@ -231,6 +231,7 @@ pub fn (mut ctx Context) json<T>(status http.Status, j T) Result {
|
||||||
|
|
||||||
json_s := json.encode(j)
|
json_s := json.encode(j)
|
||||||
ctx.send_response_to_client('application/json', json_s)
|
ctx.send_response_to_client('application/json', json_s)
|
||||||
|
|
||||||
return Result{}
|
return Result{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue