mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 03:01: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
262 B
Go
12 lines
262 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/kataras/iris"
|
|
)
|
|
|
|
// GetFollowerHandler handles the GET: /follower/{id}
|
|
func GetFollowerHandler(ctx iris.Context) {
|
|
id, _ := ctx.Params().GetInt64("id")
|
|
ctx.Writef("from "+ctx.GetCurrentRoute().Path()+" with ID: %d", id)
|
|
}
|