mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-21 07:29:37 +01:00

* feat: expose middleware utils * feat: expose middleware utils * Update antiLoop.ts * Update e2e-ci.yml
15 lines
284 B
TypeScript
15 lines
284 B
TypeScript
import express from 'express';
|
|
|
|
export const getApp = (middlewares = []) => {
|
|
const app = express();
|
|
middlewares.map((middleware) => {
|
|
app.use(middleware);
|
|
});
|
|
|
|
// app.get('/', function (req, res) {
|
|
// res.status(200).json({ name: 'pkg' });
|
|
// });
|
|
|
|
return app;
|
|
};
|