Use http stack middlewares to register api and admin panel application