MiddlewareRepository is an interface that defines the methods to be implemented.
Configures the stored mapped routes.
Starts the middleware.
Stops the middleware.
Validates the user.