23 lines
487 B
Python
23 lines
487 B
Python
"""Module containing FastAPI paths"""
|
|
|
|
import abc
|
|
|
|
from fastapi import FastAPI
|
|
|
|
|
|
class Paths(abc.ABC):
|
|
"""Abstract class for storing paths for FastAPI app"""
|
|
|
|
def __init__(self, app: FastAPI) -> None:
|
|
"""Abstract class for storing paths
|
|
for FastAPI app
|
|
|
|
Args:
|
|
app (FastAPI): Application object
|
|
"""
|
|
|
|
self.app = app
|
|
|
|
@abc.abstractmethod
|
|
def add_paths(self) -> None:
|
|
"""Add paths to the FastAPI application"""
|