Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit 160d2a4

Browse files
committed
Rename method "delete" on docs and examples
1 parent c03b53f commit 160d2a4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ fitch.patch(apiUrl, req)
7777
.then(data => console.log(data))
7878
```
7979

80-
### delete
80+
### del
8181
```js
82-
fitch.delete(apiUrl)
82+
fitch.del(apiUrl)
8383
.then(data => console.log(data))
8484
```
8585

docs/Methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ fitch.patch(apiUrl, req)
3636
.then(data => console.log(data))
3737
```
3838

39-
**delete(url, config)**
39+
**del(url, config)**
4040

4141
```js
42-
fitch.delete(apiUrl)
42+
fitch.del(apiUrl)
4343
.then(data => console.log(data))
4444
```
4545

examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ fitch.patch(`${baseUrl}/2`, reqUpdate).then(resp =>
4848
).catch(fitch.error);
4949

5050
// DELETE
51-
fitch.delete(`${baseUrl}/2`).then(resp =>
51+
fitch.del(`${baseUrl}/2`).then(resp =>
5252
console.log('DELETE\t>>>', resp)
5353
).catch(fitch.error);

0 commit comments

Comments
 (0)