remove unused VersionController

This commit is contained in:
thrillfall 2021-10-13 22:54:15 +02:00
parent 5887e8b10b
commit 76ee383ea4
2 changed files with 0 additions and 45 deletions

View File

@ -14,10 +14,5 @@ return [
['name' => 'subscription_change#list', 'url' => '/subscriptions', 'verb' => 'GET'],
['name' => 'subscription_change#create', 'url' => '/subscription_change/create', 'verb' => 'POST'],
['name' => 'version#index', 'url' => '/', 'verb' => 'GET'],
]
];

View File

@ -1,40 +0,0 @@
<?php
declare(strict_types=1);
namespace OCA\GPodderSync\Controller;
use DateTime;
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
use GuzzleHttp\Psr7\Response;
use OCA\GPodderSync\Core\EpisodeAction\EpisodeActionReader;
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionEntity;
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionRepository;
use OCA\GPodderSync\Db\EpisodeAction\EpisodeActionWriter;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse;
use OCP\IRequest;
class VersionController extends Controller {
public function __construct(
string $AppName,
IRequest $request,
$UserId
) {
parent::__construct($AppName, $request);
$this->userId = $UserId;
}
/**
*
* @NoAdminRequired
* @NoCSRFRequired
*
* @return Response
*/
public function index() {
return new JSONResponse(["version" => "0.1"]);
}
}