Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 25dabb8

Browse files
committed
feat: update root file
1 parent 3f349a2 commit 25dabb8

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

index.php

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
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.
2024
if ($uri !== '/' && file_exists(__DIR__ . '/public' . $uri)) {
2125
return false;
2226
}

0 commit comments

Comments
 (0)