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:
parent
b8356f7a87
commit
2f45d27554
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user