Added status
This commit is contained in:
parent
5c69e14d7c
commit
352d2deb12
9
src/snek/view/status.py
Normal file
9
src/snek/view/status.py
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
|
||||
from snek.system.view import BaseView
|
||||
|
||||
|
||||
class StatusView(BaseView):
|
||||
async def get(self):
|
||||
return await self.json_response({"status": "ok", "username": self.session.get("username"),"logged_in":self.session.get("username") and True or False, "uid":self.session.get("uid")})
|
Loading…
Reference in New Issue
Block a user