Fix typo in discovery API router
Adding '/' to the discovery API paths to fix the 404 issue. Change-Id: I3ae6d1dc664b2bcb4b7b8de75a3373a6486b8b83 Closes-Bug: 1706586
This commit is contained in:
parent
1bfd22ff88
commit
02f6b9074a
|
@ -556,12 +556,12 @@ class API(wsgi.Router):
|
|||
|
||||
# Discovery API
|
||||
info_resource = discovery.create_resource()
|
||||
mapper.connect('info/import',
|
||||
mapper.connect('/info/import',
|
||||
controller=info_resource,
|
||||
action='get_image_import',
|
||||
conditions={'method': ['GET']},
|
||||
body_reject=True)
|
||||
mapper.connect('info/import',
|
||||
mapper.connect('/info/import',
|
||||
controller=reject_method_resource,
|
||||
action='reject',
|
||||
allowed_methods='GET')
|
||||
|
|
Loading…
Reference in New Issue