-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
42 lines (36 loc) · 1.2 KB
/
Copy pathmain.py
File metadata and controls
42 lines (36 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from logging.config import dictConfig
import uvicorn
from fastapi import FastAPI
from core.settings import settings
from form_tasks.endpoints import urlparser_routes
from routes import auth_routes, posts_routes, attachments_routes, users_routes, reactions_routes
dictConfig(settings.LOGGER_CONFIG)
tags_metadata = [
{
"name": "auth",
"description": "Регистрация и аутентификация"
},
{
"name": "posts",
"description": "Операции с постами"
},
{
"name": "auxiliary",
"description": "Вспомогательные методы для различных операций"
},
{
"name": "users",
"description": "Получение пользовательской информации"
},
{
"name": "reactions",
"description": "Операции с реакциями"
},
]
app = FastAPI(openapi_tags=tags_metadata)
app.include_router(auth_routes.router)
app.include_router(posts_routes.router)
app.include_router(attachments_routes.router)
app.include_router(users_routes.router)
app.include_router(reactions_routes.router)
app.include_router(urlparser_routes.router)