-
Notifications
You must be signed in to change notification settings - Fork 53
REQ_GET
Jurek Muszyński edited this page Sep 8, 2018
·
1 revision
Answers whether request method is GET.
Returns true if request method is GET
, otherwise false.
if ( URI("api/v1/customer") )
{
if ( REQ_GET )
customer_get(ci);
else if ( REQ_POST )
customer_add(ci);
else if ( REQ_PUT )
customer_update(ci);
else if ( REQ_DELETE )
customer_delete(ci);
else /* method not allowed */
RES_STATUS(405);
}