2023-02-20 12:41:29 +04:00
|
|
|
"""Module containing FastAPI paths"""
|
|
|
|
|
2023-02-18 21:17:16 +04:00
|
|
|
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
|
2023-02-27 19:05:57 +04:00
|
|
|
|
2023-02-18 21:17:16 +04:00
|
|
|
@abc.abstractmethod
|
|
|
|
def add_paths(self) -> None:
|
|
|
|
"""Add paths to the FastAPI application"""
|