Skip to content

Commit

Permalink
feat(routes): add signIn, signUp routes
Browse files Browse the repository at this point in the history
  • Loading branch information
mere1y committed Jul 9, 2023
1 parent f452736 commit d4b1f2f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/shared/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import {appStarted} from '~/shared/config/init';

export const routes = {
home: createRoute(),
auth: createRoute(),
auth: {
signIn: createRoute(),
signUp: createRoute(),
},
};

export const controls = createRouterControls();
Expand All @@ -18,8 +21,12 @@ export const router = createHistoryRouter({
route: routes.home,
},
{
path: '/auth',
route: routes.auth,
path: '/sign-in',
route: routes.auth.signIn,
},
{
path: '/sign-up',
route: routes.auth.signUp,
},
],
controls,
Expand Down

0 comments on commit d4b1f2f

Please sign in to comment.