| 123456789101112131415161718 |
- package v1
- import (
- "github.com/runningwater/gohub/app/models/link"
- "github.com/runningwater/gohub/pkg/response"
- "github.com/gin-gonic/gin"
- )
- type LinksController struct {
- BaseApiController
- }
- func (ctrl *LinksController) Index(c *gin.Context) {
- links := link.AllCached()
- response.Data(c, links)
- }
|