api/v1/index.php 1 location
|
@@ 7-10 (lines=4) @@
|
4 |
|
require_once('class.FlipREST.php'); |
5 |
|
require_once('class.AuthProvider.php'); |
6 |
|
|
7 |
|
if($_SERVER['REQUEST_URI'][0] == '/' && $_SERVER['REQUEST_URI'][1] == '/') |
8 |
|
{ |
9 |
|
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 1); |
10 |
|
} |
11 |
|
|
12 |
|
$app = new FlipREST(); |
13 |
|
$app->post('/login', 'login'); |
themes/api/v1/index.php 1 location
|
@@ 5-8 (lines=4) @@
|
2 |
|
require_once('class.FlipREST.php'); |
3 |
|
require_once('class.ThemeDB.php'); |
4 |
|
|
5 |
|
if($_SERVER['REQUEST_URI'][0] == '/' && $_SERVER['REQUEST_URI'][1] == '/') |
6 |
|
{ |
7 |
|
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 1); |
8 |
|
} |
9 |
|
|
10 |
|
$app = new FlipREST(); |
11 |
|
$app->group('/themes', 'themes'); |