tmpl-flask/flaskapp/routes.py

22 lines
389 B
Python

"""Interface for all routes classes"""
import abc
from flask import Flask
class Routes(abc.ABC):
"""Flask app routes interface"""
def __init__(self, app: Flask) -> None:
"""Flask app routes
Args:
app (Flask): Flask application
"""
self.app = app
@abc.abstractmethod
def add_routes(self) -> None:
"""Add routes"""