8 lines
270 B
Python
8 lines
270 B
Python
from fastapi.templating import Jinja2Templates
|
|
import os
|
|
|
|
BASE_DIR = os.path.dirname(__file__)
|
|
PARENT_DIR = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
|
|
TEMPLATE_DIR = os.path.join(PARENT_DIR, "admin-frontend")
|
|
|
|
templates = Jinja2Templates(directory=TEMPLATE_DIR) |