mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-19 07:30:54 +00:00
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
![]() |
import { ApiStatus } from 'wherehows-web/utils/api/shared';
|
||
|
|
||
|
/**
|
||
|
* Returns a config object for the config endpoint
|
||
|
* @param {object} config the config table / factory object
|
||
|
* @return {{status: ApiStatus, config: object}}
|
||
|
*/
|
||
|
const getConfig = ({ config }: { config: object }) => ({
|
||
|
status: ApiStatus.OK,
|
||
|
config
|
||
|
});
|
||
|
|
||
|
export {
|
||
|
getConfig
|
||
|
}
|