|
|
@@ -178,9 +178,8 @@ export const routesFactory = (crowi): any => {
|
|
|
async (req: RequestWithUser, res) => {
|
|
|
const user = req.user;
|
|
|
const { prefix, pagePath } = req.query;
|
|
|
- const options: Record<string, string | undefined> = JSON.parse(
|
|
|
- req.query.options?.toString() ?? '',
|
|
|
- );
|
|
|
+ const options: Record<string, string | undefined> =
|
|
|
+ req.query.options ?? {};
|
|
|
|
|
|
// check either 'prefix' or 'pagePath ' is specified
|
|
|
if (prefix == null && pagePath == null) {
|