Fix REST API requiring an ending slash can't be invoked #19