init: initialized project struct

This commit is contained in:
ITQ
2025-01-19 19:02:41 +03:00
parent b76ad1afe8
commit a65fac7c9f
30 changed files with 1633 additions and 27 deletions
+10
View File
@@ -0,0 +1,10 @@
from django.http import HttpRequest
from ninja.security import HttpBearer
class BearerAuth(HttpBearer):
def authenticate(self, request: HttpRequest, token: str) -> str | None:
if token == "will implement later":
return token
return None