mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 10:36:19 +01:00
14 lines
198 B
Go
14 lines
198 B
Go
package like
|
|
|
|
import (
|
|
"github.com/kataras/iris"
|
|
)
|
|
|
|
type Controller struct {
|
|
iris.Controller
|
|
}
|
|
|
|
func (c *Controller) GetBy(id int64) {
|
|
c.Ctx.Writef("from "+c.Route().Path()+" with ID: %d", id)
|
|
}
|