mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-05-19 09:54:58 +00:00
Add a router and some temporary pages
This commit is contained in:
parent
56bd273711
commit
677ef885cf
9 changed files with 96 additions and 4 deletions
25
front/src/routes.js
Normal file
25
front/src/routes.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { wrap } from "svelte-spa-router/wrap";
|
||||
import PageLoading from "./routes/PageLoading.svelte";
|
||||
|
||||
const routes = {
|
||||
"/": wrap({
|
||||
asyncComponent: () => import("./routes/PageIndex.svelte"),
|
||||
loadingComponent: PageLoading,
|
||||
conditions: [],
|
||||
userData: { showNavBar: true },
|
||||
}),
|
||||
"/contact": wrap({
|
||||
asyncComponent: () => import("./routes/PageContact.svelte"),
|
||||
loadingComponent: PageLoading,
|
||||
conditions: [],
|
||||
userData: { showNavBar: true },
|
||||
}),
|
||||
"/cart": wrap({
|
||||
asyncComponent: () => import("./routes/PageShoppingCart.svelte"),
|
||||
loadingComponent: PageLoading,
|
||||
conditions: [],
|
||||
userData: { showNavBar: true },
|
||||
}),
|
||||
}
|
||||
|
||||
export default routes;
|
Loading…
Add table
Add a link
Reference in a new issue