basic temapltes rendered
This commit is contained in:
23
src/views/indexview.py
Normal file
23
src/views/indexview.py
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
from flask import render_template
|
||||
from flask_classful import FlaskView
|
||||
|
||||
from models import Item
|
||||
|
||||
"""
|
||||
Index VIEW
|
||||
"""
|
||||
|
||||
__author__ = "@tormakris"
|
||||
__copyright__ = "Copyright 2020, UnstableVortex Team"
|
||||
__module_name__ = "indexview"
|
||||
__version__text__ = "1"
|
||||
|
||||
|
||||
class IndexView(FlaskView):
|
||||
|
||||
route_base = '/'
|
||||
|
||||
def index(self):
|
||||
items = Item.query.all()
|
||||
return render_template("index.html", images=items)
|
||||
Reference in New Issue
Block a user