Change item list URL to /user/:userId/lists
This is because it's the terminology I'm using elsewhere ("Items" and "Closet" are too overloaded in the UI), and because I want to start putting specific lists at like `/user/:userId/lists/:listId`! I also create a redirect from the old URL, and also from the DTI Classic variant of the URL
This commit is contained in:
parent
ddd562b672
commit
9e222f3bf8
2 changed files with 6 additions and 1 deletions
|
@ -135,7 +135,7 @@ function App() {
|
||||||
<Route path="/outfits/:id">
|
<Route path="/outfits/:id">
|
||||||
<WardrobePage />
|
<WardrobePage />
|
||||||
</Route>
|
</Route>
|
||||||
<Route path="/user/:userId/items">
|
<Route path="/user/:userId/lists">
|
||||||
<PageLayout>
|
<PageLayout>
|
||||||
<UserItemsPage />
|
<UserItemsPage />
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
{
|
{
|
||||||
"routes": [
|
"routes": [
|
||||||
|
{
|
||||||
|
"src": "/user/(?<userId>[^/]+)/(closet|items)",
|
||||||
|
"status": 308,
|
||||||
|
"headers": { "Location": "/user/$userId/lists" }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"src": "/outfits/(?<id>[^/]+)/(?<size>150|300|600)\\.png",
|
"src": "/outfits/(?<id>[^/]+)/(?<size>150|300|600)\\.png",
|
||||||
"dest": "/api/outfitImage.js?size=$size&id=$id"
|
"dest": "/api/outfitImage.js?size=$size&id=$id"
|
||||||
|
|
Loading…
Reference in a new issue