Skip to content

Instantly share code, notes, and snippets.

@jsmuster
Created December 24, 2018 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsmuster/c86072b81e0fc013123c7ae93f31f3a4 to your computer and use it in GitHub Desktop.
Save jsmuster/c86072b81e0fc013123c7ae93f31f3a4 to your computer and use it in GitHub Desktop.
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