DeepLX/service
Bonny Lin d19a3902df
fix(service): validate request body on /translate and /v1/translate (#225)
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-06-02 14:32:22 +08: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 (#225) 2026-06-02 14:32:22 +08:00