🎉 Initial Commit
Some checks failed
release-nightly / build-docker (push) Has been cancelled

This commit is contained in:
2025-01-30 01:19:14 +08:00
commit 771227a9ed
27 changed files with 2152 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package api
import (
"git.solsynth.dev/hypernet/insight/pkg/internal/services"
"github.com/gofiber/fiber/v2"
)
func MapAPIs(app *fiber.App, baseURL string) {
api := app.Group(baseURL).Name("API")
{
api.Get("/status", func(c *fiber.Ctx) error {
err := services.PingOllama()
if err != nil {
return fiber.NewError(fiber.StatusServiceUnavailable, err.Error())
}
return c.SendStatus(fiber.StatusOK)
})
}
}