dynamic app routes #2050
amitu
started this conversation in
Ideas & RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If an app is "mounted" on say
/app/
, all URLs of that app start with/app/
, and that app wants a URL that looks like/foo/
, meaning does not start with/app/
, we are introducingdynamic app routes
feature. To use this feature the app has to useft-sdk
to call the host providedadd-dynamic-app-route
etc. We will have CRUD methods to add / update / remove dynamic routes.These routes will be managed by host and will be used to do routing. The app can add the source and target URLs when adding a dynamic app route, and if there is hit to the source url, the server will assume the target url was hit. Eg
/app/
can addsource=/foo/
andtarget=/app/foo/
and when request to /foo/ comes, we will process the request as if the request to /app/foo/ had come.The app can choose to redirect to another URL, or show content at the source url.
Beta Was this translation helpful? Give feedback.
All reactions