mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 13:05:56 +00:00
rename master branch to main
This commit is contained in:
@@ -93,6 +93,6 @@ func customIndexPost(ctx iris.Context) {
|
||||
/* Note that `HandleDir` does use the browser's disk caching by-default
|
||||
therefore, register the cache handler AFTER any HandleDir calls,
|
||||
for a faster solution that server doesn't need to keep track of the response
|
||||
navigate to https://github.com/kataras/iris/blob/master/_examples/cache/client-side/main.go.
|
||||
navigate to https://github.com/kataras/iris/blob/main/_examples/cache/client-side/main.go.
|
||||
|
||||
The `HandleDir` has its own cache mechanism, read the 'file-server' examples. */
|
||||
|
||||
@@ -35,7 +35,7 @@ func main() {
|
||||
app.SetContextErrorHandler(new(errorHandler))
|
||||
// Read
|
||||
app.Post("/decode", func(ctx iris.Context) {
|
||||
// Read https://github.com/kataras/iris/blob/master/_examples/request-body/read-json/main.go as well.
|
||||
// Read https://github.com/kataras/iris/blob/main/_examples/request-body/read-json/main.go as well.
|
||||
var user User
|
||||
err := ctx.ReadJSON(&user)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user