All checks were successful
Build the docker image for the API / build (push) Successful in 2m18s
Signed-off-by: ngn <ngn@ngn.tf>
15 lines
310 B
Go
15 lines
310 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
"github.com/ngn13/website/api/config"
|
|
)
|
|
|
|
func GET_Index(c *fiber.Ctx) error {
|
|
conf := c.Locals("config").(*config.Type)
|
|
app := conf.GetURL("app_url_clear")
|
|
|
|
// redirect to the API documentation
|
|
return c.Redirect(app.JoinPath("/doc/api").String())
|
|
}
|