storj/web/satellite/tests/unit/mock/api/config.ts
Jeremy Wharton be567021d9 web/satellite: fetch frontend config from the satellite
This change updates the satellite frontend to retrieve its
configuration from the satellite.

References #5494

Change-Id: I1eb961f8a32f7d88173006117d41eddb57624692
2023-03-24 02:10:12 -05:00

14 lines
396 B
TypeScript

// Copyright (C) 2023 Storj Labs, Inc.
// See LICENSE for copying information.
import { FrontendConfig, FrontendConfigApi } from '@/types/config';
/**
* FrontendConfigHttpApi is a mock implementation of the frontend config API.
*/
export class FrontendConfigApiMock implements FrontendConfigApi {
public async get(): Promise<FrontendConfig> {
return new FrontendConfig();
}
}