2025-01-04 00:00:10 +03:00
|
|
|
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)
|
2025-01-10 00:16:06 +03:00
|
|
|
doc := conf.GetURL("doc_url")
|
2025-01-04 00:00:10 +03:00
|
|
|
|
2025-01-10 00:16:06 +03:00
|
|
|
return c.Redirect(doc.JoinPath("/api").String())
|
2025-01-04 00:00:10 +03:00
|
|
|
}
|