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
2024-03-02 02:47:18 -05:00
2024-03-20 16:52:54 -04:00
2026-05-22 12:23:11 +08:00
2024-12-22 14:18:30 -05:00
2023-02-18 20:55:20 +08:00
2023-02-18 20:57:58 +08:00
2022-10-20 02:12:18 +08:00
2022-10-20 02:11:14 +08:00
2024-11-30 19:56:38 -05:00

GitHub Workflow Go Version Go Report GitHub License Docker Pulls Releases

How to use

[!TIP]

Learn more about 📘 Using DeepLX by checking it out.

Discussion Group

Telegram Group

Acknowledgements

Contributors

Activity

Alt

License

FOSSA Status

S
Description
DeepL Free API (No TOKEN required)
Readme MIT
1.5 MiB
Languages
Go 94.7%
Shell 4.7%
Dockerfile 0.6%