issue #439 implemented

parent df3d83fd
Showing with 3 additions and 1 deletions
...@@ -24,7 +24,9 @@ module.exports = { ...@@ -24,7 +24,9 @@ module.exports = {
*/ */
ping_session: function (req, res) { ping_session: function (req, res) {
res.ok({ res.ok({
version: sails.config.pictogram.version version: sails.config.pictogram.version,
server_time: (new Date()).getTime(),
token: sailsTokenAuth.issueToken(req.params.token, sails.config.jwt.expiresInMinutes)
}); });
} }
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment