-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use vapor to start local http server #619
Conversation
This PR initially uses vapor to implement Easydict as a local server, currently supporting two APIs: Usage: curl -X POST http://localhost:8080/translate \
-H "Content-Type: application/json" \
-d '{
"text": "good",
"targetLanguage": "zh-Hans",
"serviceType": "Apple"
}' ![]() ![]() |
I used Cloudflare Tunnel to publish the Easydict local server to the web https://easydict.izual.me , just for fun, don't guarantee 🙂 curl -X POST https://easydict.izual.me/translate \
-H "Content-Type: application/json" \
-d '{
"targetLanguage": "zh-Hans",
"text": "good",
"serviceType": "Apple"
}' |
Later, I plan to add a few more APIs, such as:
If anyone is interested in this feature or writing a server in Swift vapor , you can give it a try. |
Added support for ocr api a8a018f ![]() ![]() |
Close #580