-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93cc621
commit 70cab7e
Showing
8 changed files
with
439 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
/__pycache__ | ||
/dataBase.db | ||
/.env | ||
/tg | ||
/tg | ||
/web_nextjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from fastapi import FastAPI, UploadFile, Request, Header | ||
from fastapi.responses import JSONResponse, FileResponse, Response | ||
from typing import Annotated, Union | ||
import uvicorn | ||
from config import * | ||
import aiohttp | ||
import utils | ||
from slowapi.errors import RateLimitExceeded | ||
from slowapi import Limiter, _rate_limit_exceeded_handler | ||
from slowapi.util import get_remote_address | ||
from fastapi.middleware.cors import CORSMiddleware | ||
import time | ||
import aiofiles | ||
from prisma import Prisma | ||
import uuid | ||
import os | ||
from datetime import datetime | ||
from dotenv import load_dotenv | ||
import jwt | ||
import bcrypt | ||
import random | ||
|
||
rate_limit_exceeded_handler = _rate_limit_exceeded_handler |
Oops, something went wrong.