1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-09-18 01:52:30 +03:00
parent 9e8a58bf3b
commit 3d99983d96
8 changed files with 111 additions and 49 deletions

View File

@@ -369,5 +369,12 @@ func main() {
// should differ e.g.
// /path/{name:string}
// /path/{id:uint}
//
// Note:
// If * path part is declared at the end of the route path, then
// it's considered a wildcard (same as {p:path}). In order to declare
// literal * and over pass this limitation use the string's path parameter 'eq' function
// as shown below:
// app.Get("/*/*/{p:string eq(*)}", handler) <- This will match only: /*/*/* and not /*/*/anything.
app.Listen(":8080")
}