techdocs: Replace res.send with res.json

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
Himanshu Mishra
2021-03-12 01:32:59 +01:00
parent df905636ff
commit 784d39894a
@@ -178,11 +178,10 @@ export async function createRouter({
logger.error(
'Published files are taking longer to show up in storage. Something went wrong.',
);
res
.status(408)
.send(
res.status(408).json({
error:
'Sorry! It is taking longer for the generated docs to show up in storage. Check back later.',
);
});
return;
}
break;