Skip to content
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

Feature: Implementing route guard #10

Open
monacodelisa opened this issue Jul 1, 2024 · 1 comment
Open

Feature: Implementing route guard #10

monacodelisa opened this issue Jul 1, 2024 · 1 comment
Labels
🌟feature New feature or request 👀 needs triage

Comments

@monacodelisa
Copy link
Member

monacodelisa commented Jul 1, 2024

Type of feature

✨ Feature

Current behavior

  • no protected routes

Suggested solution

routes to be protected from unregistered site visitors:

  • { path: "account-type", component: AccountTypeComponent }
  •  {
     	path: "client", // TO-DO auth gard
     	component: DashboardComponent,
     	children: [
     		{ path: "projects", component: ClientProjectsComponent},
     		{ path: "", redirectTo: "projects", pathMatch: "full"},
     		{ path: "new", component: ClientNewProjectComponent },
     		{ path: "matches", component: ClientMatchesComponent },
     	],
     },
     {
     	path: "talent", // TO-DO auth gard
     	component: DashboardComponent,
     	children: [
     		{ path: "projects", component: TalentProjectsComponent},
     		{ path: "", redirectTo: "projects", pathMatch: "full"},
     		{ path: "new", component: TalentNewProjectComponent },
     		{ path: "matches", component: TalentMatchesComponent },
     	],
     },
    



### Additional context

_No response_

### I would be willing to submit a PR to fix this issue

- [X] Yes and I have read the [Contribution Guide](https://anguhashblog.com/contributing) and I agree to follow this project's [Code of Conduct](https://anguhashblog.com/code-of-conduct)
- [ ] No
Copy link

github-actions bot commented Jul 1, 2024

Thanks for the issue, our team will look into it as soon as possible! If you would like to work on this issue, please wait for us to decide if it's ready. The issue will be ready to work on once we remove the "needs triage" label.

To claim an issue that does not have the "needs triage" label, please leave a comment that says ".take". If you have any questions, please reach out to us on Discord or follow up on the issue itself.

For full info on how to contribute, please check out our contributors guide.

@monacodelisa monacodelisa added the 🌟feature New feature or request label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌟feature New feature or request 👀 needs triage
Projects
None yet
Development

No branches or pull requests

1 participant