Everywhere: Use session->path()
This commit is contained in:
parent
ff5a07dc04
commit
66074a5472
31 changed files with 48 additions and 48 deletions
|
@ -5,7 +5,7 @@ U0 @slon_api_v1_notifications_get(SlonHttpSession* session)
|
|||
if (@slon_api_authorized(session)) {
|
||||
// SLON_AUTH_ACCOUNT_ID
|
||||
// FIXME: Implement this
|
||||
if (String.EndsWith("policy", @slon_http_request_path(session))) {
|
||||
if (String.EndsWith("policy", session->path())) {
|
||||
session->send(SLON_EMPTY_JSON_OBJECT);
|
||||
} else {
|
||||
session->send(SLON_EMPTY_JSON_ARRAY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue