mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
8dcbdc0741
Former-commit-id: a26a8f836894c061e0f435df8ac1c2c534f0ee48
18 lines
514 B
Go
18 lines
514 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"
|
|
"github.com/kataras/iris/_benchmarks/iris-mvc2/controllers"
|
|
"github.com/kataras/iris/mvc2"
|
|
)
|
|
|
|
func main() {
|
|
app := iris.New()
|
|
mvc2.New().Controller(app.Party("/api/values/{id}"), new(controllers.ValuesController))
|
|
app.Run(iris.Addr(":5000"), iris.WithoutVersionChecker)
|
|
}
|