2025-02-16 15:21:19 -05:00
|
|
|
U0 @slon_api_v1_notifications_get(SlonHttpSession* session)
|
|
|
|
|
{
|
|
|
|
|
// SLON_SCRATCH_BUFFER_AND_REQUEST_JSON
|
|
|
|
|
|
|
|
|
|
if (@slon_api_authorized(session)) {
|
|
|
|
|
// SLON_AUTH_ACCOUNT_ID
|
|
|
|
|
// FIXME: Implement this
|
2025-02-21 18:10:25 -05:00
|
|
|
if (String.EndsWith("policy", session->path())) {
|
2025-02-20 08:24:04 -05:00
|
|
|
session->send(SLON_EMPTY_JSON_OBJECT);
|
2025-02-16 15:21:19 -05:00
|
|
|
} else {
|
2025-02-20 08:24:04 -05:00
|
|
|
session->send(SLON_EMPTY_JSON_ARRAY);
|
2025-02-16 15:21:19 -05:00
|
|
|
}
|
|
|
|
|
} else {
|
2025-02-19 21:07:09 -05:00
|
|
|
session->status(401);
|
2025-02-16 15:21:19 -05:00
|
|
|
}
|
|
|
|
|
}
|