server returns app to support connect's middleware API