projects
/
WP-Plugins
/
glm-member-db-rest-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9461074
)
fix a comment on route resource names
author
Laury GvR
<laury@gaslightmedia.com>
Tue, 2 Jul 2019 20:42:47 +0000
(16:42 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Tue, 2 Jul 2019 20:42:47 +0000
(16:42 -0400)
setup/routes.php
patch
|
blob
|
history
diff --git
a/setup/routes.php
b/setup/routes.php
index
a7bfe34
..
ef7ac87
100644
(file)
--- a/
setup/routes.php
+++ b/
setup/routes.php
@@
-53,8
+53,8
@@
class GLMA_Member_Rest_Controller
{
// Members Route
register_rest_route(
- $this->namespace, // namespace
- $this->resource_name ,
// rout
e
+ $this->namespace,
// namespace
+ $this->resource_name ,
// resource_nam
e
array( // array of arrays for multiple methods. Add more arrays for different endpoints.
array( // endpoint for getting members
'methods' => WP_REST_Server::READABLE,