Skip to content

Commit

Permalink
added static
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sidorov committed Jul 13, 2023
1 parent fdefa03 commit 1f54256
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 0 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions src/api/router.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from fastapi import APIRouter
from fastapi.staticfiles import StaticFiles

from src.api.endpoints import (
category_router,
Expand All @@ -15,3 +16,4 @@
api_router.include_router(form_router, prefix="/telegram", tags=["Forms"])
api_router.include_router(users_group_notification_router, prefix="/messages", tags=["Messages"])
api_router.include_router(site_user_router, prefix="/external_user_registration", tags=["ExternalSiteUser"])
api_router.mount("/static", StaticFiles(directory=settings.STATIC_URL), name="static")
1 change: 1 addition & 0 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Settings(BaseSettings):
ROOT_PATH: str = "/api"
DEBUG: bool = False
USE_NGROK: bool = False
STATIC_URL: str = "../templates"

# Параметры подключения к БД
POSTGRES_DB: str
Expand Down
File renamed without changes.
File renamed without changes.
Empty file.

0 comments on commit 1f54256

Please sign in to comment.