Closed simplymichael closed 2 years ago
I downloaded it and retested them. The password and the routes are working, but the apiMountPoint is still not working from the config function for me. But it is good if I set it in the listen function. Can You check it please? :))
userManager.config({ apiMountPoint : "/api/users666", ... }
Cannot GET /api/users666/list
...:8080/api/users/list
{"data":{"total":1,"length":1,"users": ....
userManager.listen(app); // userManager.listen(app, apiMountPoint = '/api/users666');
The commented version is working.
As reported by user: @Wall0fDeath:
When i try to configure the routes with the same .config function for example :
list : "/"
-> list :"/list"
localhost:8080/api/users
->localhost:8080/api/users/list
Response for
"localhost:8080/api/users/list"
:The same goes for
apiMountPoint
. If i set it in the config function, it doesn't work, but if I set it in thelisten
function, it works fine.userManager.listen(app);
->userManager.listen(app, apiMountPoint = "/api/users666");
The database and the session parts are working fine.
Is it an error, or am I calling the config function wrongly or at a wrong location in my demo?