|
1 |
| -import { Request } from "./request"; |
| 1 | +import { Request } from './request' |
2 | 2 |
|
3 | 3 | async function get (url, options) {
|
4 |
| - const response = new Request("get", url, options) |
| 4 | + const response = new Request('get', url, options) |
5 | 5 | return response.perform()
|
6 | 6 | }
|
7 | 7 |
|
8 |
| -async function post(url, options) { |
9 |
| - const response = new Request("post", url, options); |
10 |
| - return response.perform(); |
| 8 | +async function post (url, options) { |
| 9 | + const response = new Request('post', url, options) |
| 10 | + return response.perform() |
11 | 11 | }
|
12 | 12 |
|
13 |
| -async function put(url, options) { |
14 |
| - const response = new Request("put", url, options); |
15 |
| - return response.perform(); |
| 13 | +async function put (url, options) { |
| 14 | + const response = new Request('put', url, options) |
| 15 | + return response.perform() |
16 | 16 | }
|
17 | 17 |
|
18 |
| -async function patch(url, options) { |
19 |
| - const response = new Request("patch", url, options); |
20 |
| - return response.perform(); |
| 18 | +async function patch (url, options) { |
| 19 | + const response = new Request('patch', url, options) |
| 20 | + return response.perform() |
21 | 21 | }
|
22 | 22 |
|
23 |
| -async function destroy(url, options) { |
24 |
| - const response = new Request("delete", url, options); |
25 |
| - return response.perform(); |
| 23 | +async function destroy (url, options) { |
| 24 | + const response = new Request('delete', url, options) |
| 25 | + return response.perform() |
26 | 26 | }
|
27 | 27 |
|
28 |
| -export { get, post, put, patch, destroy }; |
| 28 | +export { get, post, put, patch, destroy } |
0 commit comments