fix TTS 404ing for no reason
All checks were successful
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Successful in 3m7s
mozhi pipeline / Build and publish artifacts (push) Successful in 11m50s

This commit is contained in:
Arya 2023-09-10 18:44:17 +05:30
parent c37109db11
commit a2ae02f6d7
Signed by: arya
GPG Key ID: 842D12BDA50DF120
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"