diff --git a/pinry-spa/src/router/index.js b/pinry-spa/src/router/index.js index 2a98b30..2a58c69 100644 --- a/pinry-spa/src/router/index.js +++ b/pinry-spa/src/router/index.js @@ -8,6 +8,7 @@ import Pins4Id from '../views/Pins4Id.vue'; import Boards4User from '../views/Boards4User.vue'; import PinCreate from '../views/PinCreate.vue'; import Search from '../views/Search.vue'; +import PageNotFound from '../views/PageNotFound.vue'; Vue.use(VueRouter); @@ -52,6 +53,11 @@ const routes = [ name: 'search', component: Search, }, + { + path: '*', + name: 'PageNotFound', + component: PageNotFound, + }, ]; const router = new VueRouter({ diff --git a/pinry-spa/src/views/PageNotFound.vue b/pinry-spa/src/views/PageNotFound.vue new file mode 100644 index 0000000..a5bf70b --- /dev/null +++ b/pinry-spa/src/views/PageNotFound.vue @@ -0,0 +1,53 @@ + + + + +