remove unused test file

This commit is contained in:
Flummi 2025-03-17 10:56:45 +01:00
parent 63bdc0d0ed
commit 953af4564b

View File

@ -1,36 +0,0 @@
import flummpress from '../dist/index.js';
process.on('unhandledRejection', err => {
console.error(err);
throw err;
});
const app = new flummpress();
const loggedin = async (req, res, next) => {
console.log("Logged in");
await next();
};
app.router.group(/^\/api\/v2\/admin\/(?<postid>\d+)\/tags/, group => {
group.get(/$/,
(req, res, next) => { // middleware davor
console.log("Logged in");
next();
},
(req, res, next) => { // eigentlicher request
res.reply({
body: JSON.stringify(req.params)
});
next();
},
(req, res) => { // middleware danach
console.log("Logged out");
}
);
});
app.listen(3000);
console.log(app.router);