1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-06 11:37:06 +00:00
Former-commit-id: fe6305deed00e170bf4d39a12c0644fe686e0a24
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-10-21 19:20:05 +03:00
parent dbba631df4
commit 3962710d3d
109 changed files with 4383 additions and 2658 deletions

View File

@@ -13,11 +13,11 @@ func newApp() *iris.Application {
app.PartyFunc("/api/users", func(r iris.Party) {
r.Get("/", info)
r.Get("/{id:int}", info)
r.Get("/{id:uint64}", info)
r.Post("/", info)
r.Put("/{id:int}", info)
r.Put("/{id:uint64}", info)
}) /* <- same as:
usersAPI := app.Party("/api/users")
{ // those brackets are just syntactic-sugar things.