Skip to content

Commit

Permalink
Merge pull request #253 from peviitor-ro/fix-252
Browse files Browse the repository at this point in the history
updated v0/logo/delete
  • Loading branch information
sebiboga committed Jul 13, 2024
2 parents 4df92b0 + 2fdd5b3 commit 735368f
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions v0/logo/add/index.php
Original file line number Diff line number Diff line change
@@ -1,35 +1,9 @@
<?php
header("Access-Control-Allow-Origin: *");

/**
* @OA\Post(
* path="/v0/logo/add/",
* tags={"logo"},
* summary="Add new logos",
* @OA\RequestBody(
* required=true,
* @OA\MediaType(
* mediaType="application/json",
* @OA\Schema(
* type="array",
* @OA\Items(
* type="object",
* @OA\Property(property="id", type="string", example="Nova"),
* @OA\Property(property="logo", type="string", example="https://e-infra.ro/wp-content/uploads/2023/02/logotype-nova.jpg")
* )
* )
* )
* ),
* @OA\Response(
* response="200",
* description="Success"
* )
* )
*/

$method = 'POST';

require_once '../config.php';
require_once '../../config.php';

$core = 'auth';
$command = '/update';
Expand All @@ -43,7 +17,7 @@
$qs = $qs . '&';
$qs = $qs . 'wt=json';

$url = 'http://' . $server . $core . $command . $qs;
$url = 'http://' . $server . '/solr/' . $core . $command . $qs;

$data = file_get_contents('php://input');

Expand Down

0 comments on commit 735368f

Please sign in to comment.