forked from rajun/ar-test
feat: add route path helpers
This commit is contained in:
parent
d96b06803a
commit
ca68e6856d
11
app/data/routes.ts
Normal file
11
app/data/routes.ts
Normal file
@ -0,0 +1,11 @@
|
||||
export const ROUTES = {
|
||||
home: '/projects',
|
||||
login: '/login',
|
||||
projects: '/projects',
|
||||
project: (id: string) => `/projects/${id}`,
|
||||
assets: '/assets',
|
||||
assetsFiltered: (filter: string) => `/assets?filter=${encodeURIComponent(filter)}`,
|
||||
asset: (id: string) => `/assets/${id}`,
|
||||
settings: '/settings',
|
||||
ar: (id: string) => `/ar/${id}`,
|
||||
} as const;
|
||||
Loading…
x
Reference in New Issue
Block a user