1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

add iris.IsErrEmptyJSON helper. See HISTORY.md

This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-06-16 13:52:39 +03:00
parent f9e027cb86
commit 6d3884b0ce
4 changed files with 48 additions and 2 deletions

View File

@@ -47,6 +47,12 @@ func newApp() *iris.Application {
// or 202 status code and empty body
// or a 409 status code and "my_error" body.
app.ConfigureContainer(func(api *iris.APIContainer) {
// TODO: fix that test as well.
// api.Self.SetExecutionRules(iris.ExecutionRules{
// Begin: iris.ExecutionOptions{
// Force: true,
// },
// })
api.Use(middleware)
api.Post("/{id:int}", handler)
})