balda 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,17 +19,27 @@ npm install balda
19
19
  ```
20
20
 
21
21
  ```typescript
22
- import { Server, controller, get } from 'balda';
22
+ import { Server, controller, get } from "balda";
23
23
 
24
- @controller('/api')
24
+ @controller("/api")
25
25
  class ApiController {
26
- @get('/health')
26
+ @get("/health")
27
27
  async health(req: Request, res: Response) {
28
- return res.json({ status: 'ok' });
28
+ return res.json({ status: "ok" });
29
29
  }
30
30
  }
31
31
 
32
- const server = new Server();
32
+ const server = new Server({
33
+ port: 3000,
34
+ host: "0.0.0.0",
35
+ plugins: {
36
+ bodyParser: {
37
+ json: {
38
+ sizeLimit: "10mb",
39
+ },
40
+ },
41
+ },
42
+ });
33
43
  server.listen();
34
44
  ```
35
45