mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
Replace controller's .Register with .Handle and AddDependencies with .Register in order to be aligned with the 'hero' package, all examples and docs are updated, it's crazy how I can't stop even on Christmas
Former-commit-id: 3b42963e9806e327ee42942cf156bda6059eaf8f
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
func main() {
|
||||
app := iris.New()
|
||||
mvc.New(app.Party("/api/values/{id}")).
|
||||
Register(new(controllers.ValuesController))
|
||||
Handle(new(controllers.ValuesController))
|
||||
|
||||
app.Run(iris.Addr(":5000"), iris.WithoutVersionChecker)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user