mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-12-25 14:04:29 +01:00
Add "application" alias to API object
By default gunicorn looks for an "application" object to run, so this saves us having to type api:app.
This commit is contained in:
parent
2136dc79ce
commit
b8356f7a87
@ -28,7 +28,7 @@ Index the Solr statistics core to populate the PostgreSQL database:
|
||||
|
||||
Run the REST API:
|
||||
|
||||
$ gunicorn dspace_statistics_api.app:api
|
||||
$ gunicorn dspace_statistics_api.app
|
||||
|
||||
Test to see if there are any statistics:
|
||||
|
||||
|
@ -66,7 +66,7 @@ class ItemResource:
|
||||
def on_exit(api):
|
||||
print("Shutting down DB")
|
||||
|
||||
api = falcon.API()
|
||||
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