How can I check a param of a route from a variable like so:
const SUB_ROUTES = {
GLOBALSTAR: "globalStar",
PARKINGMULTIPEAJE: "parkingMultipeaje",
RESERVAS: "reservas",
};
then in the router.ts file check someDomain.com/route/subRoute where subRoute exists inside SUB_ROUTES otherwise being redirected to notFound
I manage to solve it using per route guards from the vue docs and redirecting to NotFound.vue component like this: