make trailing slash optional for api root