Skip to content

Commit 5f5aed7

Browse files
committed
Fix merge conflict
1 parent b7db97d commit 5f5aed7

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

plugin/php/rest/class-design-assets-rest-controller.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -125,36 +125,6 @@ public function register_routes() {
125125
'schema' => [ $this, 'get_item_schema' ],
126126
]
127127
);
128-
129-
register_rest_route(
130-
$this->namespace,
131-
'/' . $this->rest_base . '/register-api-key',
132-
[
133-
[
134-
'methods' => \WP_REST_Server::CREATABLE,
135-
'callback' => [ $this, 'register_api_key' ],
136-
'permission_callback' => function( WP_REST_Request $request ) {
137-
return current_user_can( 'manage_options' );
138-
},
139-
],
140-
'schema' => [ $this, 'get_item_schema' ],
141-
]
142-
);
143-
144-
register_rest_route(
145-
$this->namespace,
146-
'/' . $this->rest_base . '/toggle-auto-updates',
147-
[
148-
[
149-
'methods' => \WP_REST_Server::CREATABLE,
150-
'callback' => [ $this, 'toggle_auto_updates' ],
151-
'permission_callback' => function( WP_REST_Request $request ) {
152-
return current_user_can( 'manage_options' );
153-
},
154-
],
155-
'schema' => [ $this, 'get_item_schema' ],
156-
]
157-
);
158128
}
159129

160130
/**

0 commit comments

Comments
 (0)