mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 11:11:03 +01:00
38c6241055
One change to code base but it will be described at the next version: Error Handlers (`app.OnErrorCode/OnAnyErrorCode`) respect the `app.UseGlobal`'s middlewares now (not the `app.Use` for reasons we can all understand, hopefully). Former-commit-id: ec97bbb04548f9932cf4d7b950be513b70747bcb
12 lines
197 B
Go
12 lines
197 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/kataras/iris"
|
|
)
|
|
|
|
// GetIndexHandler handles the GET: /
|
|
func GetIndexHandler(ctx iris.Context) {
|
|
ctx.ViewData("Title", "Index Page")
|
|
ctx.View("index.html")
|
|
}
|