Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import express from 'express';
  2. import { updateAllDependents } from './package-updater';
  3. import { filterRequiredParams, filterRepositoryName, filterDestinationBranch } from './middlewares';
  4.  
  5. const app = express();
  6.  
  7. app.use(express.json());
  8.  
  9. app.use(filterRequiredParams);
  10. app.use(filterRepositoryName);
  11. app.use(filterDestinationBranch);
  12.  
  13. app.post('/', async (req, res) => {
  14. await updateAllDependents();
  15. res.json({
  16. status: 200,
  17. });
  18. });
  19.  
  20. app.listen(3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement