DeepLX/service
Bonny07 09231c2650 fix(service): validate request body on /translate and /v1/translate
The two handlers ignored the error from c.BindJSON, so a malformed JSON body was silently processed as an empty payload. Check the error and return 400, consistent with /v2/translate.
2026-05-31 23:54:26 +09:00
..
config.go refactor: make service exportable (#183) 2025-04-08 13:53:20 -04:00
service.go fix(service): validate request body on /translate and /v1/translate 2026-05-31 23:54:26 +09:00