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 +1 -8
- package/package.json +1 -1
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', (
|
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