-
Notifications
You must be signed in to change notification settings - Fork 53
URI
Jurek Muszyński edited this page Jul 19, 2019
·
4 revisions
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(ci);
else if ( URI("/api/v1/products*") )
products_rest_api(ci);