try to fix events calendar routing

This commit is contained in:
summersamara 2023-12-18 18:29:44 +01:00
parent 9c0c5b6e83
commit 69717f26f3
2 changed files with 3 additions and 1 deletions

View file

@ -189,6 +189,7 @@ defmodule Mobilizon.Web.Router do
get("/events/create", PageController, :create_event)
get("/events/list", PageController, :list_events)
get("/events/me", PageController, :my_events)
get("/events/calendar", PageController, :calendar)
get("/events/:uuid/edit", PageController, :edit_event)
# This is a hack to ease link generation into emails

View file

@ -7,6 +7,7 @@ const participations = () => import("@/views/Event/ParticipantsView.vue");
const editEvent = () => import("@/views/Event/EditView.vue");
const event = () => import("@/views/Event/EventView.vue");
const myEvents = () => import("@/views/Event/MyEventsView.vue");
const eventCalendar = () => import("@/views/Event/CalendarView.vue");
export enum EventRouteName {
EVENT_LIST = "EventList",
@ -30,7 +31,7 @@ export const eventRoutes: RouteRecordRaw[] = [
{
path: "/events/calendar",
name: EventRouteName.EVENT_CALENDAR,
component: import("../views/Event/CalendarView.vue"),
component: eventCalendar,
meta: {
requiredAuth: false,
},