lundi 30 mai 2016

EmberJS - Server side generated variable

We are building our front-end application in EmberJS. We do several calls to a service (via Ajax) that requires a token.

This token is created by another request to this service.

All the clients will use the same token, so, ideally, it would be great to generate this token in the server side and provide this value in a global variable to all the clients.

Is it possible to do it in EmberJS, for example, when the nodeJS starts the application?




Aucun commentaire:

Enregistrer un commentaire