mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user