Replaced api endpoint matching with regex for koa-router compatibility issues