Progress Overhaul + Profile Page and a LOT more! (#4262)

Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
Joe Milazzo
2025-12-09 10:00:11 -07:00
committed by GitHub
parent 4ac13f1f25
commit 9f29fa593d
645 changed files with 25585 additions and 4805 deletions
+23
View File
@@ -0,0 +1,23 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using API.Constants;
using API.Data;
using API.DTOs.Progress;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace API.Controllers;
public class ActivityController(IUnitOfWork unitOfWork) : BaseApiController
{
/// <summary>
/// Returns active reading sessions on the Server
/// </summary>
/// <returns></returns>
[Authorize(PolicyGroups.AdminPolicy)]
[HttpGet("current")]
public async Task<ActionResult<List<ReadingSessionDto>>> GetActiveReadingSessions()
{
return Ok(await unitOfWork.ReadingSessionRepository.GetAllReadingSessionAsync());
}
}