Matchu
9e222f3bf8
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
26 lines
739 B
JSON
26 lines
739 B
JSON
{
|
|
"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"
|
|
},
|
|
{
|
|
"src": "/outfits/(?<id>[^/]+)/v/(?<updatedAt>[^/]+)/(?<size>150|300|600)\\.png",
|
|
"dest": "/api/outfitImage.js?size=$size&id=$id&updatedAt=$updatedAt"
|
|
},
|
|
{ "src": "/outfits/new(\\?|$)", "dest": "/index.html" },
|
|
{ "src": "/outfits/(?<id>[^/]+)", "dest": "/api/outfitPageSSR.js?id=$id" },
|
|
{
|
|
"handle": "filesystem"
|
|
},
|
|
{
|
|
"src": "/static/js/[^.]*\\.[^.]*\\.chunk.js",
|
|
"status": 404
|
|
}
|
|
]
|
|
}
|