From 11b1ae9980358d9e8d8d2a9cdd1c4bea2a973c5d Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 1 Jul 2022 00:29:33 -0400 Subject: [PATCH] update paths --- CHANGELOG.md | 1 + lib/cannery_web/router.ex | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 284c9104..ee5b6193 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # v0.5.4 - Rename "Ammo" tab to "Catalog", and "Manage" tab is now "Ammo" - Ammo groups are now just referred to as Ammo +- URL paths now reflect new names # v0.5.3 - Update French translation: Thank you [duponin](https://udongein.xyz/users/duponin)! diff --git a/lib/cannery_web/router.ex b/lib/cannery_web/router.ex index f7f77c75..e38b2973 100644 --- a/lib/cannery_web/router.ex +++ b/lib/cannery_web/router.ex @@ -65,12 +65,12 @@ defmodule CanneryWeb.Router do live "/tags/new", TagLive.Index, :new live "/tags/:id/edit", TagLive.Index, :edit - live "/ammo_types", AmmoTypeLive.Index, :index - live "/ammo_types/new", AmmoTypeLive.Index, :new - live "/ammo_types/:id/edit", AmmoTypeLive.Index, :edit + live "/catalog", AmmoTypeLive.Index, :index + live "/catalog/new", AmmoTypeLive.Index, :new + live "/catalog/:id/edit", AmmoTypeLive.Index, :edit - live "/ammo_types/:id", AmmoTypeLive.Show, :show - live "/ammo_types/:id/show/edit", AmmoTypeLive.Show, :edit + live "/catalog/:id", AmmoTypeLive.Show, :show + live "/catalog/:id/show/edit", AmmoTypeLive.Show, :edit live "/containers", ContainerLive.Index, :index live "/containers/new", ContainerLive.Index, :new @@ -81,17 +81,17 @@ defmodule CanneryWeb.Router do live "/containers/:id/show/edit", ContainerLive.Show, :edit live "/containers/:id/show/edit_tags", ContainerLive.Show, :edit_tags - live "/ammo_groups", AmmoGroupLive.Index, :index - live "/ammo_groups/new", AmmoGroupLive.Index, :new - live "/ammo_groups/:id/edit", AmmoGroupLive.Index, :edit - live "/ammo_groups/:id/add_shot_group", AmmoGroupLive.Index, :add_shot_group - live "/ammo_groups/:id/move", AmmoGroupLive.Index, :move + live "/ammo", AmmoGroupLive.Index, :index + live "/ammo/new", AmmoGroupLive.Index, :new + live "/ammo/:id/edit", AmmoGroupLive.Index, :edit + live "/ammo/:id/add_shot_group", AmmoGroupLive.Index, :add_shot_group + live "/ammo/:id/move", AmmoGroupLive.Index, :move - live "/ammo_groups/:id", AmmoGroupLive.Show, :show - live "/ammo_groups/:id/show/edit", AmmoGroupLive.Show, :edit - live "/ammo_groups/:id/show/add_shot_group", AmmoGroupLive.Show, :add_shot_group - live "/ammo_groups/:id/show/move", AmmoGroupLive.Show, :move - live "/ammo_groups/:id/show/:shot_group_id/edit", AmmoGroupLive.Show, :edit_shot_group + live "/ammo/:id", AmmoGroupLive.Show, :show + live "/ammo/:id/show/edit", AmmoGroupLive.Show, :edit + live "/ammo/:id/show/add_shot_group", AmmoGroupLive.Show, :add_shot_group + live "/ammo/:id/show/move", AmmoGroupLive.Show, :move + live "/ammo/:id/show/:shot_group_id/edit", AmmoGroupLive.Show, :edit_shot_group live "/range", RangeLive.Index, :index live "/range/:id/edit", RangeLive.Index, :edit