grouped all middleware together in admin.server.controller