Library to handle request and response

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/jasacloud/api

1.2 2021-01-24 03:31 UTC

This package is not auto-updated.

Last update: 2025-10-13 01:43:56 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;
}