This repository was archived by the owner on Oct 8, 2024. It is now read-only.
File tree 1 file changed +16
-12
lines changed
1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- /**
4
- * Leaf API - A minimal but powerful MVC API framework
5
- *
6
- * @package Leaf API
7
- * @author Michael Darko <[email protected] >
8
- */
3
+ /*
4
+ |--------------------------------------------------------------------------
5
+ | Leaf API
6
+ |--------------------------------------------------------------------------
7
+ |
8
+ | Leaf API is a minimal but powerful PHP MVC framework based on
9
+ | the Leaf PHP framework for building APIs.
10
+ |
11
+ | This file allows us to run the app from the root of the project.
12
+ | This provides a convenient way to test your Leaf API app
13
+ | without having installed a "real" web server software here.
14
+ |
15
+ | It also allows you to directly load up your application from
16
+ | the root file for quickly hosting on shared hosting platforms.
17
+ |
18
+ */
9
19
10
20
$ uri = urldecode (
11
21
parse_url ($ _SERVER ['REQUEST_URI ' ], PHP_URL_PATH )
12
22
);
13
23
14
- // This file allows us to run the app from the root of the project.
15
- // This provides a convenient way to test your Leaf MVC app
16
- // without having installed a "real" web server software here.
17
-
18
- // It also allows you to directly load up your application from
19
- // the root file for quickly hosting on shared hosting platforms.
20
24
if ($ uri !== '/ ' && file_exists (__DIR__ . '/public ' . $ uri )) {
21
25
return false ;
22
26
}
You can’t perform that action at this time.
0 commit comments