1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

add Party.RemoveRoute method as requested in the community chat

This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-04-04 20:24:21 +03:00
parent 968dd846c2
commit ce6c455601
6 changed files with 84 additions and 19 deletions

View File

@@ -1,11 +1,12 @@
package main
import (
"strings"
"github.com/kataras/iris/v12"
"github.com/kataras/iris/v12/middleware/logger"
"github.com/kataras/iris/v12/middleware/recover"
"github.com/kataras/iris/v12/mvc"
"strings"
)
// This example is equivalent to the
@@ -47,7 +48,7 @@ func newApp() *iris.Application {
w = strings.ToLower(w)
}
path += w
return path
return path
}).Handle(new(ExampleControllerCustomPath))
return app
@@ -131,7 +132,6 @@ func (c *ExampleControllerCustomPath) GetHelloWorld() interface{} {
return map[string]string{"message": "Hello Iris! CustomPath"}
}
// GetUserBy serves
// Method: GET
// Resource: http://localhost:8080/user/{username:string}