Skip to content

Add custom route building #7230

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

Closed
3 tasks done
mtrezza opened this issue Feb 27, 2021 · 2 comments · Fixed by #7231
Closed
3 tasks done

Add custom route building #7230

mtrezza opened this issue Feb 27, 2021 · 2 comments · Fixed by #7231
Labels
state:released Released as stable version state:released-beta Released as beta version type:feature New feature or improvement of existing feature

Comments

@mtrezza
Copy link
Member

mtrezza commented Feb 27, 2021

New Feature / Enhancement Checklist

Current Limitation

Currently, the experimental PagesRouter (like the PublicAPIRouter) has built-in routing and pages logic for the features:

  • password reset
  • email verification

It does not allow to add custom routes while using the logic that is already provided in the router in combination with the Parse Server internal PromiseRouter. Instead, developers usually have to write custom routes from scratch that exist beside the PagesRouter.

Feature / Enhancement Description

Allow to easily add custom routes while leveraging the router's capabilities. This allows to easily create complex user flows as a combinations of HTML pages and Parse Server logic. It allows to customize the password reset and email verification routes or create new custom-purpose routes.

Example Use Case

  • Require a user to enter additional parameters for a password reset.
  • Add a flow for users to change their email address by entering their old email, new email and password.
  • Require a user to enter an additional password to verify their email address to prevent link-sharing.

Alternatives / Workarounds

Developer implements custom routes without the benefits of the PagesRouter features such as localization and in possible conflict with built-in routes.

3rd Party References

(none)

@mtrezza mtrezza changed the title Add custom routes Add custom routes to pages router Feb 27, 2021
@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Feb 27, 2021
@mtrezza mtrezza changed the title Add custom routes to pages router Add custom route building Feb 27, 2021
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.0.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Nov 1, 2021
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.0.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-beta Released as beta version type:feature New feature or improvement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants