Skip to content

Commit

Permalink
Remove insecure user endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrgn committed Jan 30, 2025
1 parent 0ca5486 commit 45573bf
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions server/routers/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,21 +434,6 @@ export const shlApiRouter = new oak.Router()
return;
}
})
.get('/user/:userId', async (context: oak.Context) => {
const shl = db.DbLinks.getUserShl(context.params.userId)!;
if (!shl) {
log(context, {
action: "read",
severity: "warning",
entity: { detail: { action: `Get shl for user '${context.params.userId}'` } },
}, {userId: context.params.userId} as types.HealthLink);
return;
}
log(context, {
action: "read"
}, shl);
return (context.response.body = shl);
})
.get('/shl/:shlId/file/:fileIndex', (context) => {
const ticket = manifestAccessTickets.get(context.request.url.searchParams.get('ticket')!);
if (!ticket) {
Expand Down

0 comments on commit 45573bf

Please sign in to comment.