mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
43 lines
525 B
Markdown
43 lines
525 B
Markdown
**Login**
|
|
----
|
|
Use this to get a token that can be used to access the rest of the API
|
|
|
|
* **URL**
|
|
|
|
/login
|
|
|
|
* **Method:**
|
|
|
|
`POST`
|
|
|
|
* **JSON Params**
|
|
|
|
**Required:**
|
|
|
|
`username`<br />
|
|
`password`
|
|
|
|
* **JSON Example**
|
|
|
|
```
|
|
{
|
|
'username': 'root',
|
|
'password': 'qwerty'
|
|
}
|
|
```
|
|
|
|
* **Success Response:**
|
|
|
|
```
|
|
{
|
|
success: true,
|
|
message: 'Welcome To mStream',
|
|
vpaths: ['path1', 'path2'],
|
|
token: 'REALLY LONG STRING'
|
|
}
|
|
```
|
|
|
|
* **Error Response:**
|
|
|
|
All errors forward to `/login-failed`
|