aboutsummaryrefslogtreecommitdiff
path: root/sample-public-api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'sample-public-api.txt')
-rw-r--r--sample-public-api.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/sample-public-api.txt b/sample-public-api.txt
new file mode 100644
index 0000000..c3e1974
--- /dev/null
+++ b/sample-public-api.txt
@@ -0,0 +1,13 @@
+<?php
+
+/*
+ * This file shows how to implement a public API (no login or username needed) for your setup
+ * even if your install is private (no public access to admin area)
+ *
+ * Rename this file like "api.php" and put it in the same directory as yourls-api.php
+ *
+ */
+
+define('YOURLS_PRIVATE', false);
+
+require_once( dirname(__FILE__).'/yourls-api.php' ); \ No newline at end of file