[ SYSTEM ]: Windows NT SWD-ELEARN-11 10.0 build 20348 (Windows Server 2016) AMD64
[ SERVER ]: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.9 | PHP: 7.3.9
[ USER ]: Elearn | IP: 10.201.204.156
GEFORCE FILE MANAGER
/
C:
/
xampp
/
htdocs
/
Ajaji
/
plugins
/
webservices
/
redirect
/
src
/
Extension
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 Redirect.php
1,148 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Redirect.php
<?php /** * @package Joomla.Redirect * @subpackage Webservices.redirect * * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\WebServices\Redirect\Extension; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Router\ApiRouter; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Web Services adapter for com_redirect. * * @since 4.0.0 */ final class Redirect extends CMSPlugin { /** * Load the language file on instantiation. * * @var boolean * @since 4.0.0 */ protected $autoloadLanguage = true; /** * Registers com_redirect's API's routes in the application * * @param ApiRouter &$router The API Routing object * * @return void * * @since 4.0.0 */ public function onBeforeApiRoute(&$router) { $router->createCRUDRoutes( 'v1/redirects', 'redirect', ['component' => 'com_redirect'] ); } }