Skip to content

Commit

Permalink
Dev: Refactor rest controller to support before-controller-action event
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-foster-uk committed Jan 17, 2024
1 parent 9da2861 commit 51ef441
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions application/controllers/RestController.php
@@ -1,5 +1,4 @@
<?php

/*
* LimeSurvey
* Copyright (C) 2007-2011 The LimeSurvey Project Team / Carsten Schmitz
Expand All @@ -13,7 +12,6 @@
*
*/


use LimeSurvey\Api\Rest\Endpoint\EndpointFactory;
use LimeSurvey\DI;

Expand All @@ -23,10 +21,9 @@ class RestController extends LSYii_Controller
/**
* Run REST controller action.
*
* @param string $actionID
* @return void
*/
public function run($actionID = null)
public function actionIndex()
{
$endpointFactory = DI::getContainer()
->get(EndpointFactory::class);
Expand Down

0 comments on commit 51ef441

Please sign in to comment.