diff --git a/peptide-news-plugin/includes/class-peptide-news-rest-api.php b/peptide-news-plugin/includes/class-peptide-news-rest-api.php new file mode 100644 index 0000000..a7913c5 --- /dev/null +++ b/peptide-news-plugin/includes/class-peptide-news-rest-api.php @@ -0,0 +1,22 @@ + 'GET', + 'callback' => array( $this, 'get_articles' ), + 'permission_callback' => array( $this, 'rublic_permission' ), + ) + ); + } +}