agents.go
·
13 строк
·
339 B
| 1 | package handlers |
| 2 | |
| 3 | import ( |
| 4 | "github.com/gofiber/fiber/v2" |
| 5 | ) |
| 6 | |
| 7 | // AgentsPage renders the public guide for AI agents working with this instance. |
| 8 | // GET /agents |
| 9 | func (h *Handler) AgentsPage(c *fiber.Ctx) error { |
| 10 | data := h.baseData(c, "AI agents · Polar") |
| 11 | data["SiteURL"] = h.siteURL(c) |
| 12 | return h.render(c, fiber.StatusOK, "agents", data) |
| 13 | } |
| 14 |