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

Commit b0d2d29

Browse files
committed
expose API json
1 parent 6fe693e commit b0d2d29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ router.get('/user/:user/repos', async ctx => {
5252
ctx.body = [...repos];
5353
});
5454

55+
router.get('/user/:user/json', async ctx => {
56+
ctx.body = await rclone.cat(`${pathing.encode(ctx.params.user)}.json`);
57+
});
58+
5559
router.get('/repos/:user/:repo', async ctx => {
5660
ctx.set('Content-Type', 'application/zip');
5761

0 commit comments

Comments
 (0)