oauth2orize-examples
oauth2orize-examples copied to clipboard
A path other than root
I am using your example, but want to host it on a path other than /
. Is there a property I can set (or other approach) to achieve this simply?
Instead of doing (here)
app.listen(3000);
You can modify it to
var rootApp = express();
rootApp.use('myContextRoot',app);
rootApp.listen(3000);
This will mount the example's routes to http://localhost:3000/myContextRoot/
.
Please close this issue. 👍