mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
fix: add redirects for v0.9 requests
This commit is contained in:
@ -37,6 +37,32 @@ const config = {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
async redirects() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
permanent: true,
|
||||||
|
source: '/documents/:id/sign',
|
||||||
|
destination: '/sign/:token',
|
||||||
|
has: [
|
||||||
|
{
|
||||||
|
type: 'query',
|
||||||
|
key: 'token',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
permanent: true,
|
||||||
|
source: '/documents/:id/signed',
|
||||||
|
destination: '/sign/:token',
|
||||||
|
has: [
|
||||||
|
{
|
||||||
|
type: 'query',
|
||||||
|
key: 'token',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
Reference in New Issue
Block a user