feat(pets): adds bp, service and filters template and logic

This commit is contained in:
2024-12-04 00:01:40 -03:00
parent e8c79ed04d
commit 0e25bf660c
6 changed files with 230 additions and 0 deletions

4
app/pets/__init__.py Normal file
View File

@@ -0,0 +1,4 @@
from flask import Blueprint
bp = Blueprint('pets', __name__)
from app.pets import routes

7
app/pets/routes.py Normal file
View File

@@ -0,0 +1,7 @@
from flask import request, render_template
from app.pets import bp
from app.services.pet_service import PetService
@bp.route('/')
def index():
return render_template("pets/index.html", options=PetService.get_options(request))