mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
mvc: struct field and method dependency logs on debug level. Read HISTORY.md
- remove Party.GetReporter - Read HISTORY.md
This commit is contained in:
@@ -12,13 +12,15 @@ import (
|
||||
|
||||
func main() {
|
||||
app := iris.New()
|
||||
app.Logger().SetLevel("debug")
|
||||
|
||||
app.Get("/ping", pong).Describe("healthcheck")
|
||||
|
||||
mvc.Configure(app.Party("/greet"), setup)
|
||||
|
||||
// http://localhost:8080/greet?name=kataras
|
||||
addr := ":" + environment.Getenv("PORT", "8080")
|
||||
app.Listen(addr, iris.WithLogLevel("debug"))
|
||||
app.Listen(addr)
|
||||
}
|
||||
|
||||
func pong(ctx iris.Context) {
|
||||
|
||||
Reference in New Issue
Block a user