mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
various improvements and new 'UseOnce' method - read HISTORY.md
This commit is contained in:
@@ -31,7 +31,7 @@ func newApp() *iris.Application {
|
||||
m.Handle(new(v1Controller), mvc.Version("1"), mvc.Deprecated(opts)) // 1 or 1.0, 1.0.0 ...
|
||||
m.Handle(new(v2Controller), mvc.Version("2.3")) // 2.3 or 2.3.0
|
||||
m.Handle(new(v3Controller), mvc.Version(">=3, <4")) // 3, 3.x, 3.x.x ...
|
||||
m.Handle(new(noVersionController))
|
||||
m.Handle(new(noVersionController)) // or if missing it will respond with 501 version not found.
|
||||
}
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user