1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-11-23 23:00:21 +01:00

dspace_statistics_api/app.py: remove unused code

This was added accidentally when I refactored. I was trying to see
if I could use Falcon's on_exit() hook.
This commit is contained in:
Alan Orth 2018-10-27 14:33:37 +02:00
parent b8356f7a87
commit 2f45d27554

View File

@ -63,9 +63,6 @@ class ItemResource:
cursor.close()
def on_exit(api):
print("Shutting down DB")
api = application = falcon.API()
api.add_route('/items', AllItemsResource())
api.add_route('/item/{item_id:int}', ItemResource())