import json from flask import Flask, jsonify from flask_cors import CORS from .lib import generate_map app = Flask(__name__) CORS(app) @app.route('/') def index(): return 'Hello World' @app.route('/generate') def generate(): return jsonify(generate_map(10, 8)) @app.route('/generate//') def generate_var(x, y): return jsonify(generate_map(x, y))