         try services.register(CurrentURLProvider())
         try services.register(SubmissionsProvider())
 
-        resetProvider = ResetProvider<U>(
+        let resetProvider = ResetProvider<U>(
             config: .init(
                 name: config.name,
                 baseUrl: config.baseUrl,

        )
    }

    private var resetProvider: ResetProvider<U>!

    /// See Service.Provider.Register
    public func register(_ services: inout Services) throws {
        try services.register(LeafProvider())


    /// See Service.Provider.boot
    public func didBoot(_ container: Container) throws -> Future<Void> {
        try routes(
            container.make(),
            middlewares: middlewares,
            endpoints: AdminPanelEndpoints.default,
            resetProvider: container.make()
        )

        return .done(on: container)
