Files
Radicade/Server/Notifications/PlatformNotificationsAPI.cs
2026-10-16 23:33:13 -07:00

30 lines
905 B
C#

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace RadicadeServer.API.Notifications;
[ApiController]
[Route("platformnotifications")]
public sealed class PlatformNotificationsAPI : ControllerBase
{
[HttpGet("preferences"), Authorize]
public IActionResult GetPreferences() => Ok(new { email = true, push = true, notifications = true });
[HttpGet("accounts/{accountId:long}/receives/{notificationType}"), Authorize]
public IActionResult Receives(long accountId, string notificationType) => Ok(true);
[HttpGet("crm/me/config"), Authorize]
public IActionResult GetCrmConfig() => Ok(new
{
Results = Array.Empty<object>(),
TotalResults = 0L
});
[HttpGet("config/categories"), Authorize]
public IActionResult GetCategories() => Ok(new
{
Results = Array.Empty<object>(),
TotalResults = 0L
});
}