Created
December 24, 2018 18:24
-
-
Save jsmuster/c86072b81e0fc013123c7ae93f31f3a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var uid = require('uid-safe'); | |
var router = express.Router(); | |
/* GET a guid. */ | |
router.get('/', function(req, res, next) | |
{ | |
var strUid = uid.sync(18); | |
res.json({guid: strUid}); | |
}); | |
module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment