Advertisement
Guest User

Untitled

a guest
May 30th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. 'use strict';
  2.  
  3. let router = require('express').Router();
  4.  
  5. router.delete('/garbage', function (req, res) {
  6.  
  7. if (typeof global.gc !== 'function') {
  8. return res.status(503).end();
  9. }
  10.  
  11. global.gc();
  12. res.status(200).end();
  13. global.gc();
  14.  
  15. });
  16.  
  17. module.exports = router;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement