This commit is contained in:
Nicholas Clarke 2021-06-17 20:30:07 -07:00
parent deabf33d86
commit 8a6e5a5829
3 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea/
__pycache__/
dev.env
venv/

View File

@ -1,4 +1,5 @@
requests==2.12.4
Flask==2.0.1
psycopg2-binary
gunicorn==20.1.0
gunicorn==20.1.0
Flask-Cors==3.0.10

View File

@ -1,6 +1,7 @@
from flask import Flask, g, jsonify, request
import os
import psycopg2
from flask_cors import CORS
def create_app(debug=False):
@ -14,6 +15,7 @@ def create_app(debug=False):
app = create_app()
cors = CORS(app)
def connect_pg_db():