]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - sample-public-api.txt
Moved *.php.txt to .txt to prevent spam on misconfigured servers. Fixes issue 1319.
[Github/YOURLS.git] / sample-public-api.txt
1 <?php\r
2 \r
3 /* \r
4  * This file shows how to implement a public API (no login or username needed) for your setup\r
5  * even if your install is private (no public access to admin area)\r
6  *\r
7  * Rename this file like "api.php" and put it in the same directory as yourls-api.php\r
8  *\r
9  */\r
10 \r
11 define('YOURLS_PRIVATE', false);\r
12 \r
13 require_once( dirname(__FILE__).'/yourls-api.php' );