from app import app, db
from flask import render_template, redirect, url_for, flash, jsonify, Response
from app.models import Service
import json


@app.route('/', methods=['GET', 'POST'])
def index():
    return render_template('index.html')


@app.route('/loaddata', methods=['GET'])
def loaddata():
    data = Service.query.all()
    res = jsonify(json_list=[i.serialize for i in data])
    print(res.get_data())
    return res

ecf79ad61cf56f1e685c585ea3742fd1c3f5a838
<mask token>

<mask token>


@app.route('/loaddata', methods=['GET'])
def loaddata():
    data = Service.query.all()
    res = jsonify(json_list=[i.serialize for i in data])
    print(res.get_data())
    return res

<mask token>


@app.route('/', methods=['GET', 'POST'])
def index():
    return render_template('index.html')


@app.route('/loaddata', methods=['GET'])
def loaddata():
    data = Service.query.all()
    res = jsonify(json_list=[i.serialize for i in data])
    print(res.get_data())
    return res

from app import app, db
from flask import render_template, redirect, url_for, flash, jsonify, Response
from app.models import Service
import json


@app.route('/', methods=['GET', 'POST'])
def index():
    return render_template('index.html')


@app.route('/loaddata', methods=['GET'])
def loaddata():
    data = Service.query.all()
    res = jsonify(json_list=[i.serialize for i in data])
    print(res.get_data())
    return res
