from flask import Flask, render_template, send_from_directory
from flask_cors import CORS
from flask_restful import Api
from flask_sqlalchemy import SQLAlchemy
import os

#APP
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgres://jbdspjaddeofzc:8f2c92ef9ac427ef0274417ccc235e6d420fe4ff57be9f009b89ddb4f06dedd5@ec2-54-225-113-7.compute-1.amazonaws.com:5432/d1v6cjh3kibd5f' #HEROKU DATABASE
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

#API
api = Api(app)
base_path = '/api'

#DATABASE
db = SQLAlchemy(app)

#CORS
CORS(app)

import resources, models
###############################################################################################

@app.route('/')
def render_static():
    return render_template('index.html')


api.add_resource(resources.Ping, '{}/ping'.format(base_path))
api.add_resource(resources.Analyze, '{}/analyze'.format(base_path))
ca8f65dcda608ddc8ef00b58c889dae2fd3419fb
<mask token>


@app.route('/')
def render_static():
    return render_template('index.html')


<mask token>

<mask token>
CORS(app)
<mask token>


@app.route('/')
def render_static():
    return render_template('index.html')


api.add_resource(resources.Ping, '{}/ping'.format(base_path))
api.add_resource(resources.Analyze, '{}/analyze'.format(base_path))

<mask token>
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = (
    'postgres://jbdspjaddeofzc:8f2c92ef9ac427ef0274417ccc235e6d420fe4ff57be9f009b89ddb4f06dedd5@ec2-54-225-113-7.compute-1.amazonaws.com:5432/d1v6cjh3kibd5f'
    )
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
api = Api(app)
base_path = '/api'
db = SQLAlchemy(app)
CORS(app)
<mask token>


@app.route('/')
def render_static():
    return render_template('index.html')


api.add_resource(resources.Ping, '{}/ping'.format(base_path))
api.add_resource(resources.Analyze, '{}/analyze'.format(base_path))

from flask import Flask, render_template, send_from_directory
from flask_cors import CORS
from flask_restful import Api
from flask_sqlalchemy import SQLAlchemy
import os
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = (
    'postgres://jbdspjaddeofzc:8f2c92ef9ac427ef0274417ccc235e6d420fe4ff57be9f009b89ddb4f06dedd5@ec2-54-225-113-7.compute-1.amazonaws.com:5432/d1v6cjh3kibd5f'
    )
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
api = Api(app)
base_path = '/api'
db = SQLAlchemy(app)
CORS(app)
import resources, models


@app.route('/')
def render_static():
    return render_template('index.html')


api.add_resource(resources.Ping, '{}/ping'.format(base_path))
api.add_resource(resources.Analyze, '{}/analyze'.format(base_path))

from flask import Flask, render_template, send_from_directory
from flask_cors import CORS
from flask_restful import Api
from flask_sqlalchemy import SQLAlchemy
import os

#APP
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgres://jbdspjaddeofzc:8f2c92ef9ac427ef0274417ccc235e6d420fe4ff57be9f009b89ddb4f06dedd5@ec2-54-225-113-7.compute-1.amazonaws.com:5432/d1v6cjh3kibd5f' #HEROKU DATABASE
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

#API
api = Api(app)
base_path = '/api'

#DATABASE
db = SQLAlchemy(app)

#CORS
CORS(app)

import resources, models
###############################################################################################

@app.route('/')
def render_static():
    return render_template('index.html')


api.add_resource(resources.Ping, '{}/ping'.format(base_path))
api.add_resource(resources.Analyze, '{}/analyze'.format(base_path))