instead of calling next, give error if called node server without api path