Skip to content

Commit

Permalink
fix address
Browse files Browse the repository at this point in the history
  • Loading branch information
jb-alvarado committed Jan 1, 2024
1 parent d0904e7 commit c8ca458
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 53 deletions.
87 changes: 38 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ curl -X GET http://127.0.0.1:8787/api/control/1/media/current
**Get next Clip**
```BASH
curl -X GET http://127.0.0.1:8787/api/control/1/media/next/ -H 'Authorization: Bearer <TOKEN>'
curl -X GET http://127.0.0.1:8787/api/control/1/media/next -H 'Authorization: Bearer <TOKEN>'
```
**Get last Clip**
```BASH
curl -X GET http://127.0.0.1:8787/api/control/1/media/last/
curl -X GET http://127.0.0.1:8787/api/control/1/media/last
-H 'Content-Type: application/json' -H 'Authorization: Bearer <TOKEN>'
```
Expand Down
4 changes: 2 additions & 2 deletions ffplayout-api/src/api/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ pub async fn media_current(
/// **Get next Clip**
///
/// ```BASH
/// curl -X GET http://127.0.0.1:8787/api/control/1/media/next/ -H 'Authorization: Bearer <TOKEN>'
/// curl -X GET http://127.0.0.1:8787/api/control/1/media/next -H 'Authorization: Bearer <TOKEN>'
/// ```
#[get("/control/{id}/media/next")]
#[protect(any("Role::Admin", "Role::User"), ty = "Role")]
Expand All @@ -742,7 +742,7 @@ pub async fn media_next(
/// **Get last Clip**
///
/// ```BASH
/// curl -X GET http://127.0.0.1:8787/api/control/1/media/last/
/// curl -X GET http://127.0.0.1:8787/api/control/1/media/last
/// -H 'Content-Type: application/json' -H 'Authorization: Bearer <TOKEN>'
/// ```
#[get("/control/{id}/media/last")]
Expand Down

0 comments on commit c8ca458

Please sign in to comment.