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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user