This repository was archived by the owner on Oct 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed
Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change 11<?php
22
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+ */
919
1020$ uri = urldecode (
1121 parse_url ($ _SERVER ['REQUEST_URI ' ], PHP_URL_PATH )
1222);
1323
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.
2024if ($ uri !== '/ ' && file_exists (__DIR__ . '/public ' . $ uri )) {
2125 return false ;
2226}
You can’t perform that action at this time.
0 commit comments