Remove the /events/explore route
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
0f82363878
commit
3ca4291c9b
|
@ -6,7 +6,7 @@
|
|||
</b-navbar-item>
|
||||
</template>
|
||||
<template slot="start">
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.EXPLORE }">{{
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.SEARCH }">{{
|
||||
$t("Explore")
|
||||
}}</b-navbar-item>
|
||||
<b-navbar-item tag="router-link" :to="{ name: RouteName.MY_EVENTS }">{{
|
||||
|
|
|
@ -13,7 +13,6 @@ export enum EventRouteName {
|
|||
EVENT_LIST = "EventList",
|
||||
CREATE_EVENT = "CreateEvent",
|
||||
MY_EVENTS = "MyEvents",
|
||||
EXPLORE = "Explore",
|
||||
EDIT_EVENT = "EditEvent",
|
||||
DUPLICATE_EVENT = "DuplicateEvent",
|
||||
PARTICIPATIONS = "Participations",
|
||||
|
@ -39,12 +38,6 @@ export const eventRoutes: RouteConfig[] = [
|
|||
component: editEvent,
|
||||
meta: { requiredAuth: true },
|
||||
},
|
||||
{
|
||||
path: "/events/explore",
|
||||
name: EventRouteName.EXPLORE,
|
||||
redirect: { name: "Search" },
|
||||
meta: { requiredAuth: false },
|
||||
},
|
||||
{
|
||||
path: "/events/me",
|
||||
name: EventRouteName.MY_EVENTS,
|
||||
|
|
|
@ -16,7 +16,6 @@ defmodule Mobilizon.Web.PageController do
|
|||
defdelegate my_events(conn, params), to: PageController, as: :index
|
||||
defdelegate create_event(conn, params), to: PageController, as: :index
|
||||
defdelegate list_events(conn, params), to: PageController, as: :index
|
||||
defdelegate explore_events(conn, params), to: PageController, as: :index
|
||||
defdelegate edit_event(conn, params), to: PageController, as: :index
|
||||
defdelegate moderation_report(conn, params), to: PageController, as: :index
|
||||
defdelegate participation_email_confirmation(conn, params), to: PageController, as: :index
|
||||
|
|
|
@ -82,6 +82,7 @@ defmodule Mobilizon.Web.Router do
|
|||
|
||||
get("/@:name", PageController, :actor)
|
||||
get("/events/me", PageController, :my_events)
|
||||
get("/events/create", PageController, :create_event)
|
||||
get("/events/:uuid", PageController, :event)
|
||||
get("/comments/:uuid", PageController, :comment)
|
||||
get("/resource/:uuid", PageController, :resource)
|
||||
|
@ -142,7 +143,6 @@ 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/explore", PageController, :explore_events)
|
||||
get("/events/:uuid/edit", PageController, :edit_event)
|
||||
|
||||
# This is a hack to ease link generation into emails
|
||||
|
|
Loading…
Reference in a new issue