Library to handle request and response

1.2 2021-01-24 03:31 UTC

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;
}