aboutsummaryrefslogtreecommitdiffstats
path: root/rest.php
diff options
context:
space:
mode:
authorTim Starling <tstarling@wikimedia.org>2019-05-16 14:36:45 +1000
committerTim Starling <tstarling@wikimedia.org>2019-07-09 15:23:29 +1000
commit490e35598dfa406d9acd886b85e3ae7e9260e27e (patch)
treefe6023a79937b981f6cf6cc436c7ad0f77ac1142 /rest.php
parent94c0baaa2fb1761292539aad689df54fe44d2d46 (diff)
downloadmediawikicore-490e35598dfa406d9acd886b85e3ae7e9260e27e.tar.gz
mediawikicore-490e35598dfa406d9acd886b85e3ae7e9260e27e.zip
Add rest.php (REST API endpoint) with feature flag
Change-Id: I0f9aaa9cc81f93c00f7a28041615d7290b453803
Diffstat (limited to 'rest.php')
-rw-r--r--rest.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/rest.php b/rest.php
new file mode 100644
index 000000000000..3ac532e43db9
--- /dev/null
+++ b/rest.php
@@ -0,0 +1,28 @@
+<?php
+
+/**
+ * This is the entry point for the REST API.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ */
+
+use MediaWiki\Rest\EntryPoint;
+
+require __DIR__ . '/includes/WebStart.php';
+
+EntryPoint::main();