A Connect middleware for Kansas