From 9e222f3bf849938efa539a9ca760171d91f16717 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 11 Jun 2021 19:06:12 -0700 Subject: [PATCH] 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 --- src/app/App.js | 2 +- vercel.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/App.js b/src/app/App.js index 889d9ca..3522d46 100644 --- a/src/app/App.js +++ b/src/app/App.js @@ -135,7 +135,7 @@ function App() { - + diff --git a/vercel.json b/vercel.json index dceed97..cd2a01b 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,10 @@ { "routes": [ + { + "src": "/user/(?[^/]+)/(closet|items)", + "status": 308, + "headers": { "Location": "/user/$userId/lists" } + }, { "src": "/outfits/(?[^/]+)/(?150|300|600)\\.png", "dest": "/api/outfitImage.js?size=$size&id=$id"