mirror of
https://github.com/kataras/iris.git
synced 2025-01-26 03:56:34 +01:00
cf1e580cde
Former-commit-id: 27c97d005d9cbd2309587b11fc9e2bab85870502
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)
|
|
}
|