Skip to content

Commit

Permalink
little modifications to v0/total
Browse files Browse the repository at this point in the history
  • Loading branch information
ale23yfm committed Jul 6, 2024
1 parent 4af8cbe commit 795e258
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions v0/total/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
header("Access-Control-Allow-Origin: *");

/**
* @OA\Get(
* path="/v0/total/", tags={"UI"},
Expand Down Expand Up @@ -38,14 +39,11 @@

$companies = $json['facet_counts']['facet_fields']['company_str'];



$obj = new stdClass();
$obj->total = new stdClass();
$obj->total -> jobs = ''.$json['response']['numFound'];
$obj->total -> companies = ''.count($companies)/2;

echo json_encode($obj);


?>

0 comments on commit 795e258

Please sign in to comment.