tmpl-fastapi/app/pages.py

17 lines
331 B
Python
Raw Normal View History

"""Main FastAPI paths"""
from fastapi import Response
from . import paths
from . import respond
class MainPaths(paths.Paths):
"""Main FastAPI app paths, inherits paths.Paths"""
def add_paths(self) -> None:
@self.app.get('/')
def index() -> Response:
return respond.with_tmpl('index.html')