mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
total refactor of the hero and mvc packages, see README#Next (it's not completed yet) Former-commit-id: b85ae99cbfe5965ba919c1e15cf4989e787982c0
13 lines
194 B
Go
13 lines
194 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.Listen(":5000")
|
|
}
|