mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 19:56:28 +01:00
13 lines
226 B
Go
13 lines
226 B
Go
package main
|
|
|
|
import "github.com/kataras/iris"
|
|
|
|
func main() {
|
|
app := iris.New()
|
|
app.Get("/api/values/{id}", func(ctx iris.Context) {
|
|
ctx.WriteString("value")
|
|
})
|
|
|
|
app.Run(iris.Addr(":5000"), iris.WithoutVersionChecker)
|
|
}
|