mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
34664aa311
Former-commit-id: 0ea7e01ce1d78bcb78b40f3b0f5c03ad7c9abaea
19 lines
509 B
Go
19 lines
509 B
Go
package main
|
|
|
|
/// TODO: remove this on the "master" branch, or even replace it
|
|
// with the "iris-mvc" (the new implementatioin is even faster, close to handlers version,
|
|
// with bindings or without).
|
|
|
|
import (
|
|
"github.com/kataras/iris/_benchmarks/iris-mvc2/controllers"
|
|
|
|
"github.com/kataras/iris"
|
|
"github.com/kataras/iris/mvc"
|
|
)
|
|
|
|
func main() {
|
|
app := iris.New()
|
|
mvc.New(app.Party("/api/values/{id}")).Register(new(controllers.ValuesController))
|
|
app.Run(iris.Addr(":5000"), iris.WithoutVersionChecker)
|
|
}
|