bool URI(const char *string)
Compares request URI with string. Excludes leading /. If ended with an asterisk, it will be treated as a wildcard.
/
Returns true if request URI matches string, otherwise false.
if ( URI("temp/document.pdf") ) send_pdf(); else if ( URI("/api/v1/products*") ) products_rest_api();
There was an error while loading. Please reload this page.