We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would it be possible to add a code example on how to implement this HostRouter?
HostRouter
The text was updated successfully, but these errors were encountered:
Sorry for the very late reply here (I had notifications off for some reason), but you use it just like you use existing routes in your vapor app:
let publicHost = app.grouped(host: "jiiiii.moe") let apiHost = app.grouped(host: "api.jiiiii.moe") publicHost.get("hello") { request in "Hello jiiiii.moe" } apiHost.get("hello") { request in "Hello api.jiiiii.moe" }
Sorry, something went wrong.
No branches or pull requests
Would it be possible to add a code example on how to implement this
HostRouter
?The text was updated successfully, but these errors were encountered: