|
|
|
@ -69,6 +69,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
|
/// <returns>A <see cref="NoContentResult"/> indicating success.</returns>
|
|
|
|
|
[HttpPost("Join")]
|
|
|
|
|
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
|
|
|
|
[Authorize(Policy = Policies.SyncPlayAccess)]
|
|
|
|
|
public ActionResult SyncPlayJoinGroup(
|
|
|
|
|
[FromBody, Required] JoinGroupRequestDto requestData)
|
|
|
|
|
{
|
|
|
|
@ -100,6 +101,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
|
/// <returns>An <see cref="IEnumerable{GroupInfoView}"/> containing the available SyncPlay groups.</returns>
|
|
|
|
|
[HttpGet("List")]
|
|
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
|
|
[Authorize(Policy = Policies.SyncPlayAccess)]
|
|
|
|
|
public ActionResult<IEnumerable<GroupInfoDto>> SyncPlayGetGroups()
|
|
|
|
|
{
|
|
|
|
|
var currentSession = RequestHelpers.GetSession(_sessionManager, _authorizationContext, Request);
|
|
|
|
|