From be538a887a80c18a4d19a95a6019c0f38a28ae45 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 15 Mar 2025 13:24:46 +0000 Subject: [PATCH] =?UTF-8?q?README.md=20gel=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index ced875d..0000000 --- a/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# flummpress - -## Usage Example -```javascript -import path from "path"; -import flummpress, { router, views } from "flummpress"; - -(async () => { - const port = 8080; - (await new flummpress()) - .listen(port) - .on("listening", () => { - console.log(`flummpress is listening on port ${port}`); - - // new route GET - router.get(/^\/$/, (req, res) => { - res.reply({ - body: "hello world!" - }); - }); - - // new route POST - router.post(/^\/$/, async (req, res) => { - const postdata = await req.post; - console.log(postdata); - res.reply({ - body: "hello post!" - }); - }); - - // public folder - router.static({ - dir: path.resolve() + "/public", - route: /^\/public/ - }); - }); -})(); -``` - -## documentation - -coming soon \ No newline at end of file