get votes and winner
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
use Backend\Models\Vote;
|
||||
require "../../../bootstrap.php";
|
||||
require_once "../Group/Group.php";
|
||||
|
||||
if(isLogin()){
|
||||
header('Content-Type: application/json;charset=UTF-8');
|
||||
echo Vote::where('group_id',groupViaToken($_SESSION['token']))->get()->toJson(JSON_PRETTY_PRINT);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user