Closed KashingLiu closed 2 years ago
https://github.com/julianlam/nodebb-plugin-sso-facebook/blob/9bee11630a70c630c0e727d507b2017c96aaee43/library.js#L37-L38
It seems that only use /admin cannot reach the correct page. After I add params.router.get('/api/admin/'), it works.
params.router.get('/api/admin/')
When I click the login button, will it calls /admin firstly and then calls /api/admin?
Likely you need to ./nodebb build.
./nodebb build
The first renders the actual page. The second, only the json data.
https://github.com/julianlam/nodebb-plugin-sso-facebook/blob/9bee11630a70c630c0e727d507b2017c96aaee43/library.js#L37-L38
It seems that only use /admin cannot reach the correct page. After I add
params.router.get('/api/admin/')
, it works.When I click the login button, will it calls /admin firstly and then calls /api/admin?