update the app_url config option
All checks were successful
Build the docker image for the API / build (push) Successful in 2m6s
Build the docker image for the frontend application / build (push) Successful in 37s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-04-08 03:07:14 +03:00
parent 8d16273540
commit 90af3d0500
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D
3 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import (
func GET_Index(c *fiber.Ctx) error { func GET_Index(c *fiber.Ctx) error {
conf := c.Locals("config").(*config.Type) conf := c.Locals("config").(*config.Type)
app := conf.GetURL("app_url_clear") app := conf.GetURL("app_url")
// redirect to the API documentation // redirect to the API documentation
return c.Redirect(app.JoinPath("/doc/api").String()) return c.Redirect(app.JoinPath("/doc/api").String())

View File

@ -40,7 +40,7 @@ func GET_News(c *fiber.Ctx) error {
db := c.Locals("database").(*database.Type) db := c.Locals("database").(*database.Type)
conf := c.Locals("config").(*config.Type) conf := c.Locals("config").(*config.Type)
app := conf.GetURL("app_url_clear") app := conf.GetURL("app_url")
lang := c.Params("lang") lang := c.Params("lang")
if lang == "" || len(lang) != 2 { if lang == "" || len(lang) != 2 {

View File

@ -1,2 +1,3 @@
User-Agent: * User-Agent: *
Disallow: /doc/ Disallow: /doc/
Disallow: /api/