Endpoints
This commit is contained in:
@@ -14,7 +14,8 @@ class Posts extends Api
|
||||
{
|
||||
$page = max(0, intval(Input::get("p", 0)));
|
||||
$limit = constrain(0, 30, intval(Input::get("l", 10)));
|
||||
$authed = Request::header("token") !== null;
|
||||
$authed = Request::token() !== null;
|
||||
|
||||
Response::json(Post::list($page, $limit, $authed));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user