mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 18:46:19 +01:00
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c. Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
13 lines
202 B
Go
13 lines
202 B
Go
package main
|
|
|
|
import "github.com/kataras/iris/v12"
|
|
|
|
func main() {
|
|
app := iris.New()
|
|
app.Get("/api/values/{id}", func(ctx iris.Context) {
|
|
ctx.WriteString("value")
|
|
})
|
|
|
|
app.Run(iris.Addr(":5000"))
|
|
}
|