diff --git a/Procfile b/Procfile index e2c6366..93f040b 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn api:app --log-file - \ No newline at end of file +web: gunicorn app:app --log-file - \ No newline at end of file diff --git a/app.py b/app.py index 2678bda..9817466 100644 --- a/app.py +++ b/app.py @@ -2,10 +2,11 @@ import connexion +app = connexion.App(__name__, specification_dir='./swagger/') +app.add_api('swagger.yaml', + arguments={ + 'title': 'Rubber Duck Booking Tool' + }) + if __name__ == '__main__': - app = connexion.App(__name__, specification_dir='./swagger/') - app.add_api('swagger.yaml', - arguments={ - 'title': 'Rubber Duck Booking Tool' - }) app.run(port=8080) diff --git a/controllers/default_controller.py b/controllers/default_controller.py index d75e600..ea81210 100644 --- a/controllers/default_controller.py +++ b/controllers/default_controller.py @@ -1,3 +1,2 @@ - -def ducks_get() -> str: +def ducks_get(): return 'do some magic!'