Closed shireefadel closed 4 years ago
I Needed to change the URI , instead of exposing my database name using an alias name, but I couldn't use this alias name.
Instead of requesting my resources like this
http://domainname/databasename/collectionname use this alias http://domainname/resources/collectionname
when accessing this url http://domainname/resources/collectionname I got the message {"http status code":404,"http status description":"Not Found","message":"Collection 'resources' does not exist"} but this url works http://domainname/collectionname
root-mongo-resource = /databasename
mongo-mounts:
- what: {{{root-mongo-resource}}}
where: /resources
Cannot reproduce. Suspect a misconfiguration, checking with @shireefadel
due to wrong configuration, helped @shireefadel checking conf files
I Needed to change the URI , instead of exposing my database name using an alias name, but I couldn't use this alias name.
Expected Behavior
http://domainname/databasename/collectionname use this alias http://domainname/resources/collectionname
Current Behavior
when accessing this url http://domainname/resources/collectionname I got the message {"http status code":404,"http status description":"Not Found","message":"Collection 'resources' does not exist"} but this url works http://domainname/collectionname
Steps to Reproduce
root-mongo-resource = /databasename
mongo-mounts:
- what: {{{root-mongo-resource}}}
where: /resources
Possible Implementation