summaryrefslogtreecommitdiffstats
path: root/lib/public/appframework/apicontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/appframework/apicontroller.php')
-rw-r--r--lib/public/appframework/apicontroller.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/appframework/apicontroller.php b/lib/public/appframework/apicontroller.php
index 0cb5b0c7d5b..0af37f3a616 100644
--- a/lib/public/appframework/apicontroller.php
+++ b/lib/public/appframework/apicontroller.php
@@ -33,6 +33,7 @@ use OCP\IRequest;
/**
* Base class to inherit your controllers from that are used for RESTful APIs
+ * @since 7.0.0
*/
abstract class ApiController extends Controller {
@@ -52,6 +53,7 @@ abstract class ApiController extends Controller {
* defaults to 'Authorization, Content-Type, Accept'
* @param int $corsMaxAge number in seconds how long a preflighted OPTIONS
* request should be cached, defaults to 1728000 seconds
+ * @since 7.0.0
*/
public function __construct($appName,
IRequest $request,
@@ -72,6 +74,7 @@ abstract class ApiController extends Controller {
* @NoAdminRequired
* @NoCSRFRequired
* @PublicPage
+ * @since 7.0.0
*/
public function preflightedCors() {
if(isset($this->request->server['HTTP_ORIGIN'])) {