Refactor routing structure
Closed this issue · 0 comments
alexieyizhe commented
CompaniesRouter
:
/companies
EXACT: redirect to/find?t=companies
/companies/{COMPANY_SLUG}
EXACT: show company details and company jobs
JobsRouter
:
/jobs
: redirect to/find?t=jobs
/companies/{COMPANY_SLUG}/jobs/{JOB_SLUG}
: show job details and job reviews
ReviewsRouter
:
/reviews
EXACT: redirect to/find?t=reviews
/reviews/{REVIEW_ID}
: show review details modal
Use location
prop on each route instead of using a switch
PROBLEM: how to render 404 page without a switch