Navigating defined routes is pivotal in SpurtCMS-powered applications, shaping the functionality and behavior of different endpoints. These routes orchestrate the rendering of login and signup funcionality of the spurtCMS templates, handle user authentication, and facilitate data manipulation. With their structured architecture, defined routes guarantee smooth navigation and seamless interaction within web applications powered by SpurtCMS.
Here is the description of major routes defined by spurtCMS template.
Enhanced Routes Description:
1 /login - GET:
This route serves to render the login template, providing users with the interface to authenticate and access the system.
2 /logout - GET:
When accessed, this route logs out the currently logged-in user, terminating their active session and redirecting them to the appropriate landing page.
3 /checkmemberlogin - POST:
With a payload including email and password, this route verifies the provided credentials. Upon successful validation, it returns a token for authorized access; otherwise, it throws an error message.
Payload:
email: ""
password: ""
4 /signup - GET:
By accessing this route, users are directed to the signup template, enabling them to create new accounts within the system.
5 / - GET:
This route displays a list of available spaces, providing users with an overview of the available areas they can navigate within the system.
6 /space/:stitle/:pgtitle/?spid=<current spaceid> - GET:
Upon accessing this route, the system renders the page view, presenting details pertaining to a specific space including its groups, pages, subpages, and content.
7 /notes - POST:
By submitting a payload containing page ID and content, this route facilitates the creation of notes associated with the current page.
8 /memberregister - POST:
Users can register as new members by submitting their first name, last name, mobile number, email, and password via this route. Upon successful registration, a new member account is created.
Payload:
fname: ""
lname: ""
mobile: ""
email: ""
password: ""
9 /verify-email-otp - POST:
This route handles the verification of email OTP (One-Time Password). Users provide the OTP, along with the new email and old email ID. If the OTP is valid, the new email is updated; otherwise, an error is thrown.
Payload:
otp : 12345
newemail : ""
oldemailid : ""
10 /otp-genrate - POST:
Upon submission of an email address, this route generates an OTP and sends it to the provided email for verification purposes.
Payload:
email: ""
11 /passwordchange - GET:
Accessing this route renders the password change template, allowing users to modify their account passwords securely.
12 /verify-otppass - POST:
Users submit their OTP and new password via this route for verification. Upon successful validation, the password is updated.
Payload:
otp : 123456
mynewpassword : ""
13 /change-email - GET:
Renders the template for changing the user's email address, presenting the user interface for the modification process.
14 /new-email?changeemail= - GET:
This route is used to render the template for changing the user's email address, providing flexibility in managing email configurations.
15 /passwordotp - GET:
Renders the template for generating an OTP related to password changes, enhancing security measures during the password modification process.
16 /passwordchange?emailid= - GET:
Renders the template for changing the user's password, providing a streamlined interface for updating account security settings.
17 /myprofileupdate - POST:
Users can update their profile information by submitting their first name, last name, mobile number, and other relevant details via this route. Upon submission, the user's profile is updated accordingly.
Payload:
fname: ""
lname: ""
mobile: ""
crop_data: ""
All the above mentioned defined routes ensure a smooth and intuitive experience within SpurtCMS-powered platforms, ultimately contributing to enhanced usability and functionality across the web application landscape.
Embark on your SpurtCMS journey armed with the knowledge of templates, variables, and routes, and unleash the full potential of dynamic web development.