added a sample route for post. /api/action. .htaccess file need to be added on production, E.g.

Options -MultiViews

    RewriteEngine On
    #RewriteBase {{path relative to webroot if not on webfoot}}
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [QSA,L]