mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
fmt
parent
94de79999c
commit
a6ab223a9e
|
@ -105,4 +105,4 @@ handler := iris.FileServer("./assets", iris.DirOptions {
|
|||
})
|
||||
```
|
||||
|
||||
Examples can be found at: https://github.com/kataras/iris/tree/v11.2.0/_examples/file-server
|
||||
Examples can be found at: https://github.com/kataras/iris/tree/master/_examples/file-server
|
||||
|
|
10
Routing.md
10
Routing.md
|
@ -142,7 +142,8 @@ func main() {
|
|||
none.Method = iris.MethodGet
|
||||
}
|
||||
|
||||
// refresh re-builds the router at serve-time in order to be notified for its new routes.
|
||||
// refresh re-builds the router at serve-time in order to
|
||||
// be notified for its new routes.
|
||||
app.RefreshRouter()
|
||||
})
|
||||
|
||||
|
@ -153,9 +154,12 @@ func main() {
|
|||
return
|
||||
}
|
||||
|
||||
// same as navigating to "http://localhost:8080/invisible/iris" when /change has being invoked and route state changed
|
||||
// same as navigating to "http://localhost:8080/invisible/iris"
|
||||
// when /change has being invoked and route state changed
|
||||
// from "offline" to "online"
|
||||
ctx.Values().Set("from", "/execute") // values and session can be shared when calling Exec from a "foreign" context.
|
||||
ctx.Values().Set("from", "/execute")
|
||||
// values and session can be
|
||||
// shared when calling Exec from a "foreign" context.
|
||||
// ctx.Exec("NONE", "/invisible/iris")
|
||||
// or after "/change":
|
||||
ctx.Exec("GET", "/invisible/iris")
|
||||
|
|
Loading…
Reference in New Issue
Block a user