feat(pets): adds bp, service and filters template and logic
This commit is contained in:
4
app/pets/__init__.py
Normal file
4
app/pets/__init__.py
Normal 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
7
app/pets/routes.py
Normal 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))
|
||||
Reference in New Issue
Block a user