1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-09-17 08:56:42 +02:00

Change / route to /items

I think it's more obvious if the "all items" route is plural. Also,
this will allow me to eventually put documentation at the root.
This commit is contained in:
2018-09-25 11:34:07 +03:00
parent f30a464cd1
commit 4cf8656b35
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@@ -59,7 +59,7 @@ class ItemResource:
resp.media = statistics
api = falcon.API()
api.add_route('/', AllItemsResource())
api.add_route('/items', AllItemsResource())
api.add_route('/item/{item_id:int}', ItemResource())
# vim: set sw=4 ts=4 expandtab: