base ] = array( // GET list API. array( array( $this, 'get_list' ), AfterShip_API_Server::READABLE ), // PUT or POST API. array( array( $this, 'update' ), AfterShip_API_Server::METHOD_POST | AfterShip_API_Server::METHOD_PUT | AfterShip_API_Server::ACCEPT_DATA ), ); return $routes; } }