mirror of
https://codeberg.org/aryak/mozhi
synced 2024-11-16 21:12:59 +05:30
fix TTS 404ing for no reason
This commit is contained in:
parent
c37109db11
commit
a2ae02f6d7
@ -61,7 +61,7 @@ func HandleTTS(c *fiber.Ctx) error {
|
|||||||
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
||||||
}
|
}
|
||||||
c.Set("Content-Type", "audio/mpeg")
|
c.Set("Content-Type", "audio/mpeg")
|
||||||
return c.Send(data)
|
return c.Status(fiber.StatusOK).Send(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
// HandleTranslate godoc
|
// HandleTranslate godoc
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
_ "codeberg.org/aryak/mozhi/docs"
|
_ "codeberg.org/aryak/mozhi/docs"
|
||||||
"codeberg.org/aryak/mozhi/pages"
|
"codeberg.org/aryak/mozhi/pages"
|
||||||
"codeberg.org/aryak/mozhi/views"
|
|
||||||
"codeberg.org/aryak/mozhi/public"
|
"codeberg.org/aryak/mozhi/public"
|
||||||
|
"codeberg.org/aryak/mozhi/views"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/gofiber/fiber/v2/middleware/compress"
|
"github.com/gofiber/fiber/v2/middleware/compress"
|
||||||
"github.com/gofiber/fiber/v2/middleware/filesystem"
|
"github.com/gofiber/fiber/v2/middleware/filesystem"
|
||||||
|
Loading…
Reference in New Issue
Block a user