From 8872a5b8a253ca0aff707c1524660ca4c1530d01 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 5 Apr 2026 20:31:25 +0700 Subject: [PATCH] feat: add peptide-news-plugin/includes/class-peptide-news-rest-api.php --- .../includes/class-peptide-news-rest-api.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 peptide-news-plugin/includes/class-peptide-news-rest-api.php 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' ), + ) + ); + } +}