Endpoints
This commit is contained in:
1 parent
5251c43a6b
commit
700faf4351
10 files changed
+367
-158
No files matched your search
@@ -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