Everywhere: Make session->status() callable

This commit is contained in:
Alec Murphy 2025-02-19 21:07:09 -05:00
parent ca8e7ae7f6
commit 6813c13ab3
23 changed files with 100 additions and 74 deletions

View file

@ -122,9 +122,9 @@ U0 @slon_api_v1_timelines_get(SlonHttpSession* session)
goto slon_api_v1_timelines_get_return;
}
@slon_http_set_status_code(session, 404);
session->status(404);
} else {
@slon_http_set_status_code(session, 401);
session->status(401);
return;
}
slon_api_v1_timelines_get_return: