open-law/app/views/book/bp.py

17 lines
249 B
Python
Raw Normal View History

2023-05-17 16:21:53 +00:00
from flask import (
Blueprint,
)
from app.controllers import (
book_validator,
)
bp = Blueprint("book", __name__, url_prefix="/book")
@bp.before_request
def before_request():
if response := book_validator():
return response