add dummy middleware for api