Your IP : 3.148.217.16


Current Path : /var/www/wptbox/wp-content/mu-plugins/wp-nc-easywp/config/
Upload File :
Current File : /var/www/wptbox/wp-content/mu-plugins/wp-nc-easywp/config/api.php

<?php
if (!defined("ABSPATH")) {
    exit();
}

/*
|--------------------------------------------------------------------------
| WordPress REST API configuration
|--------------------------------------------------------------------------
|
| Here is where you can set up the WordPress REST API features.
|
*/

return [

    // embeded wp-json-server
    'wp' => [
        'require_authentication' => false, // will affect all routes.
    ],

    // your custom rest api
    'custom' => [
        'path' => '/api',
        'enabled' => true,
    ],

    // authentication
    'auth' => [
        // embed basic authentication handler
        'basic' => true
    ]
];