mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
update to version 8.4.1 ❤️ https://github.com/kataras/iris/blob/master/HISTORY.md#th-07-september-2017--v841
Former-commit-id: 9e5f0a08049b83605aa847b8f51fb856427354a6
This commit is contained in:
14
doc.go
14
doc.go
@@ -832,7 +832,6 @@ Register one or more relative paths and able to get path parameters, i.e
|
||||
- `func(*Controller) PostProfileFollowers()` - `POST:/user/profile/followers`
|
||||
- `func(*Controller) GetBy(id int64)` - `GET:/user/{param:long}`
|
||||
- `func(*Controller) PostBy(id int64)` - `POST:/user/{param:long}`
|
||||
|
||||
If `app.Controller("/profile", new(profile.Controller))`
|
||||
|
||||
- `func(*Controller) GetBy(username string)` - `GET:/profile/{param:string}`
|
||||
@@ -841,6 +840,12 @@ Register one or more relative paths and able to get path parameters, i.e
|
||||
|
||||
- `func(*Controller) GetByWildard(path string)` - `GET:/assets/{param:path}`
|
||||
|
||||
If `app.Controller("/equality", new(profile.Equality))`
|
||||
|
||||
- `func(*Controller) GetBy(is bool)` - `GET:/equality/{param:boolean}`
|
||||
|
||||
Supported types for method functions receivers: int, int64, bool and string.
|
||||
|
||||
|
||||
Using Iris MVC for code reuse
|
||||
|
||||
@@ -901,6 +906,13 @@ Standard macro types for parameters:
|
||||
int64 type
|
||||
only numbers (0-9)
|
||||
|
||||
+------------------------+
|
||||
| {param:boolean} |
|
||||
+------------------------+
|
||||
bool type
|
||||
only "1" or "t" or "T" or "TRUE" or "true" or "True"
|
||||
or "0" or "f" or "F" or "FALSE" or "false" or "False"
|
||||
|
||||
+------------------------+
|
||||
| {param:alphabetical} |
|
||||
+------------------------+
|
||||
|
||||
Reference in New Issue
Block a user