Started migrating to backend work

This commit is contained in:
2023-11-22 20:12:58 +03:00
parent ce940f7646
commit ccceb16196
4 changed files with 40 additions and 71 deletions

View File

@@ -1,4 +1,5 @@
from aiohttp import ClientSession
from .api_method import ApiMethod
@@ -11,7 +12,7 @@ class Admin(ApiMethod):
async def is_admin(self, id: str):
async with ClientSession() as session:
response = await session.get(self.api_url+f'admin/is-admin/{id}')
response = await session.get(self.api_url+f'/admin/is-admin/{id}')
if await response.text() == 'false':
return False
return True