forked from retoor/snek
Added status
This commit is contained in:
@@ -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")})
|
||||
Reference in New Issue
Block a user