jasacloud / api
Library to handle request and response
1.2
2021-01-24 03:31 UTC
Requires
- php: >=5.4
- jasacloud/dbmanager: ^1.0
- jasacloud/logger: ^1.0
- jasacloud/mcmanager: ^1.0
This package is not auto-updated.
Last update: 2024-05-12 18:54:31 UTC
README
Configuration for nginx web server.
Add the your project
example :
<?PHP
// /location/index.php:
$api = new Api();
$api->processApi();
?>
Modify your nginx config :
location = /api {
rewrite ^(.*)$ "/location/index.php";
}
location ~ /api/ {
rewrite /api/([\._0-9a-zA-Z]+)/?([\._0-9a-zA-Z]+)/?[.*]?/?[.*]? /location/index.php?kind=$2%23$1;
}