2023-02-15 19:55:06 +04:00
|
|
|
"""Interface for all routes classes"""
|
|
|
|
|
|
|
|
import abc
|
2023-02-15 17:34:49 +04:00
|
|
|
|
|
|
|
from flask import Flask
|
|
|
|
|
|
|
|
|
2023-02-15 19:55:06 +04:00
|
|
|
class Routes(abc.ABC):
|
|
|
|
"""Flask app routes interface"""
|
|
|
|
|
|
|
|
def __init__(self, app: Flask) -> None:
|
|
|
|
"""Flask app routes
|
|
|
|
|
|
|
|
Args:
|
|
|
|
app (Flask): Flask application
|
|
|
|
"""
|
2023-02-15 17:34:49 +04:00
|
|
|
|
2023-02-15 19:55:06 +04:00
|
|
|
self.app = app
|
2023-02-15 17:34:49 +04:00
|
|
|
|
2023-02-15 19:55:06 +04:00
|
|
|
@abc.abstractmethod
|
|
|
|
def add_routes(self) -> None:
|
|
|
|
"""Add routes"""
|