Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Commit 0a327f8

Browse files
committed
parse JSON before beautifying
1 parent 8923de0 commit 0a327f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ router.get('/user/:user/json', async ctx => {
5757

5858
const raw = await rclone.cat(`${pathing.encode(ctx.params.user)}.json`, false);
5959

60-
ctx.body = JSON.stringify(raw, null, '\t');
60+
ctx.body = JSON.stringify(JSON.parse(raw), null, '\t');
6161
});
6262

6363
router.get('/repos/:user/:repo', async ctx => {

0 commit comments

Comments
 (0)