fix bug in api example

Added the TARGETPATH to the onRequestStart function in the api example.
This was causing an error on CF10.