mirror of
https://codeberg.org/aryak/mozhi
synced 2025-06-04 00:41:07 +05:30
deepl autodetect + gofmt
This commit is contained in:
@@ -81,7 +81,7 @@ func HandleTranslate(c *fiber.Ctx) error {
|
||||
from := utils.Sanitize(c.Query("from"), "alpha")
|
||||
to := utils.Sanitize(c.Query("to"), "alpha")
|
||||
text := c.Query("text")
|
||||
if engine == "" && from == "" && to == "" && text == ""{
|
||||
if engine == "" && from == "" && to == "" && text == "" {
|
||||
return fiber.NewError(fiber.StatusBadRequest, "from, to, engine, text are required query strings.")
|
||||
}
|
||||
var err error
|
||||
|
Reference in New Issue
Block a user