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