# Register Blueprints/Views.
from gatco.response import text, json
from application.extensions import jinja

def init_views(app):
    import application.controllers.user
    import application.controllers.hanghoa
    import application.controllers.hoadon
    import application.controllers.chitiethoadon
    import application.controllers.gianhang
    import application.controllers.loaigianhang
    import application.controllers.giohang
    
    @app.route('/')
    def index(request):
        #return text("Index")
        return jinja.render('index.html', request)
    @app.route('/client_app/')
    def admin_index(request):
        return jinja.render('index_client.html', request)
    
    