mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 15:09:26 -07:00
30 lines
905 B
C#
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
|
|
});
|
|
}
|