wiki.techinc.nl/tests/phpunit/unit/includes/Rest/Handler/HelloHandler.php
Clara Andrew-Wani adb087f618 Remove sample REST API handler
Bug: T237540
Change-Id: Ie0a6ecbf9af6e53ed65b92c3b4c7414ae6ae5441
2020-03-18 13:47:24 -04:00

19 lines
282 B
PHP

<?php
namespace MediaWiki\Tests\Rest\Handler;
use MediaWiki\Rest\Handler;
/**
* Example handler
* @unstable
*/
class HelloHandler extends Handler {
public function execute() {
return [ 'message' => "Hello!" ];
}
public function needsWriteAccess() {
return false;
}
}