[ Root System Explorer ]
Location:
Root
/
home
/
svaxkys
/
www
/
AcmaCulot
/
wp-content
/
plugins
/
redux-framework
/
extendify-sdk
/
app
/
Controllers
+ Folder
+ File
Upload
Editing: AuthController.php
<?php /** * Controls Auth */ namespace Extendify\ExtendifySdk\Controllers; use Extendify\ExtendifySdk\Http; if (!defined('ABSPATH')) { die('No direct access.'); } /** * The controller for dealing registration and authentication */ class AuthController { /** * Login a user to extendify - it will return the API key * * @param \WP_REST_Request $request - The request. * @return WP_REST_Response|WP_Error */ public static function login($request) { $response = Http::post('/login', $request->get_params()); return new \WP_REST_Response($response); } /** * Handle registration - It will return the API key. * * @param \WP_REST_Request $request - The request. * @return WP_REST_Response|WP_Error */ public static function register($request) { $response = Http::post('/register', $request->get_params()); return new \WP_REST_Response($response); } }
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 AuthController.php
FILE
Ren
[EDIT]
DEL
📄 MetaController.php
FILE
Ren
[EDIT]
DEL
📄 PingController.php
FILE
Ren
[EDIT]
DEL
📄 PluginController.php
FILE
Ren
[EDIT]
DEL
📄 TaxonomyController.php
FILE
Ren
[EDIT]
DEL
📄 TemplateController.php
FILE
Ren
[EDIT]
DEL
📄 UserController.php
FILE
Ren
[EDIT]
DEL