You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did found on the documentation anything about do a multiple host routes.
I would like to do a set of routes to when I hit api.xpto.com it will redirect to be available some set of routes, and when I hit api2.xpto.com it will be available another set of routes.
Currently, I have an application running in production with pedestal routes, so I was switching to reitit, but I miss this feature, if is something you guys would like to have or any suggestion I'm willing to open a pull request or something.
There is nothing built-in, but you can build this easily on top of reitit. e.g.
create a middleware that reads :host and :schema keys from route data. see parameter coercion middleware as example, e.g. either needs to needs to be set for the middleware to mount into to the route
I did found on the documentation anything about do a multiple host routes.
I would like to do a set of routes to when I hit
api.xpto.com
it will redirect to be available some set of routes, and when I hitapi2.xpto.com
it will be available another set of routes.Currently, I have an application running in production with pedestal routes, so I was switching to reitit, but I miss this feature, if is something you guys would like to have or any suggestion I'm willing to open a pull request or something.
The text was updated successfully, but these errors were encountered: