You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-12
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,8 @@
6
6
## Table of Contents
7
7
8
8
-[About](#about)
9
-
-[Features](#features)
10
9
-[Install](#install)
11
-
-[Run](#run)
10
+
-[Features](#features)
12
11
-[Create an app](#create-an-app)
13
12
14
13
## About
@@ -17,6 +16,12 @@ This is a minimalistic Web framework for Node.js. It helps you create RESTful AP
17
16
18
17
The idea is to have 0 dependencies while still have all the functionality you would expect from bigger frameworks like Express, Koa, Fastify etc with just a fraction of the footprint.
19
18
19
+
## Install
20
+
21
+
```bash
22
+
npm install quarkhttp
23
+
```
24
+
20
25
## Features
21
26
22
27
- Create routes supporting GET, POST, PUT, DELETE HTTP Verbs. There are convenience methods for this:
@@ -49,30 +54,23 @@ The idea is to have 0 dependencies while still have all the functionality you wo
49
54
```javascript
50
55
app.get('/products/:id', (req, res) => {
51
56
console.log(req.params) // for route /products/1 { id: "1" }
52
-
console.log(req.query) // for route /products?page=1&pageSize=20 { page: "1", pageSize: "20"}
53
57
})
54
58
```
55
59
56
-
**Query parameters**
60
+
**Query parameters**
57
61
58
62
```javascript
59
63
app.get('/products/', (req, res) => {
60
64
console.log(req.query) // for route /products?page=1&pageSize=20 { page: "1", pageSize: "20"}
0 commit comments