Skip to content

Commit

Permalink
add vue ui
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieScottC committed Dec 7, 2023
1 parent b058b67 commit 161d4ea
Show file tree
Hide file tree
Showing 3 changed files with 538 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/training_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ async def retrieve_flags(self, request):
logging.error(e)
return web.json_response(dict(badges=[b.display for b in badges]))

async def retrieve_certs(self, request):
access = dict(access=tuple(await self.auth_svc.get_permissions(request)))
certifications = await self.data_svc.locate('certifications', match=access)
return web.json_response(dict(certificates=[cert.display for cert in certifications]))

async def reset_flag(self, request):
"""
Allows cert takers to reset the latest flag if something went wrong with running the automatic operation.
Expand Down
Loading

0 comments on commit 161d4ea

Please sign in to comment.