bun-router 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
package/examples/space.ts CHANGED
@@ -4,13 +4,6 @@ const r = router();
4
4
 
5
5
  const aliens = '👽'.repeat(30);
6
6
 
7
- r.add('/', 'GET', (req) => {
8
- const message = {
9
- page: 'home',
10
- space: 'home',
11
- body: 'ok'
12
- };
13
- return json(message);
14
- });
7
+ r.add('/space', 'GET', () => html(`<h1>${aliens}</h1>`))
15
8
 
16
9
  r.serve();
package/package.json CHANGED
@@ -8,5 +8,5 @@
8
8
  "peerDependencies": {
9
9
  "typescript": "^5.0.0"
10
10
  },
11
- "version": "0.2.7"
11
+ "version": "0.2.8"
12
12
  }