oauth2orize-examples icon indicating copy to clipboard operation
oauth2orize-examples copied to clipboard

A path other than root

Open oravecz opened this issue 8 years ago • 2 comments

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?

oravecz avatar Dec 07 '16 21:12 oravecz

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/.

mati-o avatar Jan 01 '17 12:01 mati-o

Please close this issue. 👍

jilvin avatar Jan 14 '18 16:01 jilvin