Skip to content

Commit

Permalink
updating uploads helper
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Jan 12, 2024
1 parent 094a8dd commit 78978d6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Rest/Routes/AbstractUtilsBaseRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,12 @@
use EightshiftLibs\Rest\CallableRouteInterface;
use EightshiftLibs\Rest\Routes\AbstractRoute;
use WP_REST_Request;
use WP_REST_Server;

/**
* Class AbstractUtilsBaseRoute
*/
abstract class AbstractUtilsBaseRoute extends AbstractRoute implements CallableRouteInterface
{
/**
* Method that registers rest route that is used inside rest_api_init hook
*
* @param WP_REST_Server $wpRestServer Server object.
*
* @return void
*/
public function routeRegisterCallback(WP_REST_Server $wpRestServer): void
{
\register_rest_route(
UtilsConfig::ROUTE_NAMESPACE . '/' . UtilsConfig::ROUTE_VERSION,
$this->getRouteName(),
$this->getCallbackArguments(),
false
);
}

/**
* Method that returns project Route namespace
*
Expand Down

0 comments on commit 78978d6

Please sign in to comment.