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

Routes refactor #7

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Routes refactor #7

wants to merge 2 commits into from

Conversation

dalejh
Copy link
Collaborator

@dalejh dalejh commented Jul 14, 2022

No description provided.

Comment on lines +60 to +72
path: "search/:articleId",
element: <Analytics />,
isProtected: true,
},
[RoutesEnum.ARTICLES]: {
path: "articles/:articleId",
element: <Article />,
isProtected: true,
},
[RoutesEnum.USERS]: {
path: "users/:userId",
element: <User />,
isProtected: true,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about like, /search (list articles from search view) /articles (list articles from admin view for bulk action) /users (list users)? Are those omitted here or does this logic somehow allow rendering those routes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah -- omitted. I hadn't used Outlet before and wasn't entirely sure what was going on. I'll refactor this tmmrw to account for those things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants