Skip to content

Commit 2f50299

Browse files
authored
Update README.md
1 parent 1edcd1f commit 2f50299

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# fastpanel-api
22
NodeJS API client for FastPanel
33

4-
## Example
4+
## Пример
55

66
```js
77
const api = require('./index');
@@ -13,11 +13,11 @@ Api.auth('fastuser', 'password').then(async () => {
1313
});
1414
```
1515

16-
## Output
16+
## Вывод
1717

1818
```bash
1919
[FastPanel API by MayerDev] Got token:
20-
<token here>
20+
Здесь токен
2121
{ data:
2222
{ action: null,
2323
allowed_user_count: 0,
@@ -55,3 +55,13 @@ Api.auth('fastuser', 'password').then(async () => {
5555
username: 'fastuser',
5656
virtualhost_count: 2 } }
5757
```
58+
59+
## Методы
60+
61+
### _get()
62+
63+
Отправка GET запроса к API
64+
65+
```js
66+
Api._get('api/me')
67+
```

0 commit comments

Comments
 (0)