Remove the /events/explore route

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-08-12 17:55:38 +02:00
parent 0f82363878
commit 3ca4291c9b
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
4 changed files with 2 additions and 10 deletions

View File

@ -6,7 +6,7 @@
</b-navbar-item> </b-navbar-item>
</template> </template>
<template slot="start"> <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") $t("Explore")
}}</b-navbar-item> }}</b-navbar-item>
<b-navbar-item tag="router-link" :to="{ name: RouteName.MY_EVENTS }">{{ <b-navbar-item tag="router-link" :to="{ name: RouteName.MY_EVENTS }">{{

View File

@ -13,7 +13,6 @@ export enum EventRouteName {
EVENT_LIST = "EventList", EVENT_LIST = "EventList",
CREATE_EVENT = "CreateEvent", CREATE_EVENT = "CreateEvent",
MY_EVENTS = "MyEvents", MY_EVENTS = "MyEvents",
EXPLORE = "Explore",
EDIT_EVENT = "EditEvent", EDIT_EVENT = "EditEvent",
DUPLICATE_EVENT = "DuplicateEvent", DUPLICATE_EVENT = "DuplicateEvent",
PARTICIPATIONS = "Participations", PARTICIPATIONS = "Participations",
@ -39,12 +38,6 @@ export const eventRoutes: RouteConfig[] = [
component: editEvent, component: editEvent,
meta: { requiredAuth: true }, meta: { requiredAuth: true },
}, },
{
path: "/events/explore",
name: EventRouteName.EXPLORE,
redirect: { name: "Search" },
meta: { requiredAuth: false },
},
{ {
path: "/events/me", path: "/events/me",
name: EventRouteName.MY_EVENTS, name: EventRouteName.MY_EVENTS,

View File

@ -16,7 +16,6 @@ defmodule Mobilizon.Web.PageController do
defdelegate my_events(conn, params), to: PageController, as: :index defdelegate my_events(conn, params), to: PageController, as: :index
defdelegate create_event(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 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 edit_event(conn, params), to: PageController, as: :index
defdelegate moderation_report(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 defdelegate participation_email_confirmation(conn, params), to: PageController, as: :index

View File

@ -82,6 +82,7 @@ defmodule Mobilizon.Web.Router do
get("/@:name", PageController, :actor) get("/@:name", PageController, :actor)
get("/events/me", PageController, :my_events) get("/events/me", PageController, :my_events)
get("/events/create", PageController, :create_event)
get("/events/:uuid", PageController, :event) get("/events/:uuid", PageController, :event)
get("/comments/:uuid", PageController, :comment) get("/comments/:uuid", PageController, :comment)
get("/resource/:uuid", PageController, :resource) get("/resource/:uuid", PageController, :resource)
@ -142,7 +143,6 @@ defmodule Mobilizon.Web.Router do
get("/events/create", PageController, :create_event) get("/events/create", PageController, :create_event)
get("/events/list", PageController, :list_events) get("/events/list", PageController, :list_events)
get("/events/me", PageController, :my_events) get("/events/me", PageController, :my_events)
get("/events/explore", PageController, :explore_events)
get("/events/:uuid/edit", PageController, :edit_event) get("/events/:uuid/edit", PageController, :edit_event)
# This is a hack to ease link generation into emails # This is a hack to ease link generation into emails