Added http response code
This commit is contained in:
@@ -7,4 +7,6 @@ if(isLogin()){
|
||||
header('Content-Type: application/json;charset=UTF-8');
|
||||
echo Vote::where('group_id',groupViaToken($_SESSION['token'])->id)->get()->toJson(JSON_PRETTY_PRINT);
|
||||
|
||||
}else{
|
||||
http_response_code(401);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user