Adjust routing
This commit is contained in:
parent
a9bcbd065d
commit
99d945c26a
|
@ -12,7 +12,7 @@ import PrinterDiscoveryRouter from './controllers/PrinterDiscoveryController.js'
|
||||||
|
|
||||||
export const app = express()
|
export const app = express()
|
||||||
|
|
||||||
app.use('/', express.static('public'))
|
app.use(express.static('public'))
|
||||||
|
|
||||||
app.use(bodyParser.json())
|
app.use(bodyParser.json())
|
||||||
app.use(populateUserMiddleware)
|
app.use(populateUserMiddleware)
|
||||||
|
|
|
@ -4,8 +4,14 @@ import { createRouter, createWebHistory } from "vue-router";
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
|
name: "Home",
|
||||||
component: () => import(/* webpackChunkName: "home" */ "@/views/Home.vue"),
|
component: () => import(/* webpackChunkName: "home" */ "@/views/Home.vue"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/:pathMatch(.*)*",
|
||||||
|
name: "NotFound",
|
||||||
|
component: () => import(/* webpackChunkName: "home" */ "@/views/404.vue"),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
|
|
6
web/src/views/404.vue
Normal file
6
web/src/views/404.vue
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<template>
|
||||||
|
<div class="page">
|
||||||
|
<h1>404</h1>
|
||||||
|
<p>Page not found.</p>
|
||||||
|
</div>
|
||||||
|
</template>
|
Loading…
Reference in New Issue
Block a user