Acomodados packages para funcionar con gunicorn

This commit is contained in:
2020-11-19 03:15:09 -03:00
parent 5ff211c1db
commit 20c72e3af0
9 changed files with 7 additions and 7 deletions

21
home/entry.py Normal file
View File

@@ -0,0 +1,21 @@
from flask import Flask
from . import services
app = Flask(__name__)
app.config.from_object('home.settings')
@app.route('/currency')
def currency():
return services.currency.get(app.config['FOREX_KEY'])
@app.route('/weather')
def weather():
return services.weather.get('temuco', app.config['OPENWEATHERMAP_KEY'])
@app.route('/photos')
def photos():
return services.photos.get(app.config['UNSPLASH_KEY'])
@app.route('/')
def hello_world():
return 'Hello, World!'