File size: 209 Bytes
e0b68d2
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from pathlib import Path

from fastapi.templating import Jinja2Templates


TEMPLATES_DIR = Path(__file__).resolve().parent.parent / "templates"
templates = Jinja2Templates(directory=str(TEMPLATES_DIR))