This commit is contained in:
2025-05-09 02:08:43 +02:00
parent 165dda3210
commit ac570d036c
2 changed files with 37 additions and 7 deletions
+8
View File
@@ -42,6 +42,14 @@ class UserService(BaseService):
def get_admin_uids(self):
return self.mapper.get_admin_uids()
async def get_static_path(self, user_uid):
path = pathlib.Path(f"./drive/{user_uid}/snek/static")
if not path.exists():
return None
return path
async def get_template_path(self, user_uid):
path = pathlib.Path(f"./drive/{user_uid}/snek/templates")
if not path.exists():