iris/_examples/bootstrap/routes/follower.go
Gerasimos (Makis) Maropoulos ed45c77be5 reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
2020-06-07 15:26:06 +03:00

12 lines
266 B
Go

package routes
import (
"github.com/kataras/iris/v12"
)
// 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)
}