This commit is contained in:
2025-06-04 03:04:37 -05:00
parent c885ede8af
commit d0338a0849
5 changed files with 61 additions and 22 deletions

View File

@ -5,7 +5,7 @@ from .forms import PlantForm
bp = Blueprint('plant', __name__, template_folder='templates')
@bp.route('/plants')
@bp.route('/plants/')
def index():
plants = Plant.query.order_by(Plant.created_at.desc()).all()
return render_template('plant/index.html', plants=plants)