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

17 lines
249 B
Python

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