-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.ts
21 lines (19 loc) · 1.09 KB
/
routes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { createRoute } from 'next-typed-routes';
const routes = {
home: createRoute('/'),
experienceSearch: (location: string, capacity: string) => createRoute('/experience/search', undefined, { location, capacity }),
experienceDetails: (expid: string) => createRoute('/experience/[expid]', { expid }),
bookExperience: (expid: string) => createRoute('/experience/booking', undefined, { expid }),
newExperience: createRoute('/experience/new'),
editExperience: (expid: string) => createRoute('/experience/edit', undefined, { expid }),
userProfile: createRoute('/profile/personal-information'),
userExperiences: createRoute('/profile/experiences'),
becomeACreator: createRoute('/creator/become'),
creatorForm: createRoute('/creator/join'),
bookingRequests: createRoute('/creator/dashboard/booking-requests'),
creatorCalendar: createRoute('/creator/dashboard/calendar'),
createdExperiences: createRoute('/creator/dashboard/experiences'),
blog: createRoute('/blog'),
blogPost: (slug: string) => createRoute('/blog/[slug]', { slug })
}
export default routes;