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:
Emi Matchu 2021-06-11 19:06:12 -07:00
parent ddd562b672
commit 9e222f3bf8
2 changed files with 6 additions and 1 deletions

View file

@ -135,7 +135,7 @@ function App() {
<Route path="/outfits/:id">
<WardrobePage />
</Route>
<Route path="/user/:userId/items">
<Route path="/user/:userId/lists">
<PageLayout>
<UserItemsPage />
</PageLayout>

View file

@ -1,5 +1,10 @@
{
"routes": [
{
"src": "/user/(?<userId>[^/]+)/(closet|items)",
"status": 308,
"headers": { "Location": "/user/$userId/lists" }
},
{
"src": "/outfits/(?<id>[^/]+)/(?<size>150|300|600)\\.png",
"dest": "/api/outfitImage.js?size=$size&id=$id"