mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
45c6bce15f
Former-commit-id: 23f795a6b6b64745311d0630d8e630edc3f65244
12 lines
269 B
Go
12 lines
269 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/kataras/iris/v12"
|
|
)
|
|
|
|
// GetFollowingHandler handles the GET: /following/{id}
|
|
func GetFollowingHandler(ctx iris.Context) {
|
|
id, _ := ctx.Params().GetInt64("id")
|
|
ctx.Writef("from "+ctx.GetCurrentRoute().Path()+" with ID: %d", id)
|
|
}
|