Add a catch-all route
Some checks failed
/ golint (push) Failing after 9s

For error messaging
This commit is contained in:
Eli Ribble 2026-05-24 21:51:10 +00:00
parent d92b579efa
commit 528a785007
No known key found for this signature in database
3 changed files with 36 additions and 0 deletions

View file

@ -14,6 +14,7 @@ import ComplianceProcess from "@/rmo/content/compliance/Process.vue";
import ComplianceSubmit from "@/rmo/content/compliance/Submit.vue";
import HomeBase from "@/rmo/view/Home.vue";
import HomeDistrict from "@/rmo/view/district/Home.vue";
import NotFound from "@/rmo/view/NotFound.vue";
import NuisanceBase from "@/rmo/view/Nuisance.vue";
import NuisanceDistrict from "@/rmo/view/district/Nuisance.vue";
import RegisterNotificationsComplete from "@/rmo/view/RegisterNotificationsComplete.vue";
@ -154,6 +155,12 @@ const routes: RouteRecordRaw[] = [
name: "Water",
component: Water,
},
// Catch-all route - must be last
{
path: "/:pathMatch(.*)*",
name: "NotFound",
component: NotFound,
},
];
export const router = createRouter({