diff --git a/src/utils/functions/getDateTime.ts b/src/utils/functions/getDateTime.ts new file mode 100644 index 0000000..5980360 --- /dev/null +++ b/src/utils/functions/getDateTime.ts @@ -0,0 +1,6 @@ +import getApi from "./getApi.ts" + +export default async () => { + const response = await getApi('get-datetime') + return response.result +} \ No newline at end of file diff --git a/src/utils/functions/index.ts b/src/utils/functions/index.ts index 114d5b2..aad7471 100644 --- a/src/utils/functions/index.ts +++ b/src/utils/functions/index.ts @@ -9,3 +9,4 @@ export { default as voidPopsApi } from './voidPopsApi.ts'; export { default as securePassword } from './securePassword.ts'; export { default as saveNewName } from './saveNewName.ts'; export { default as saveNewPassword } from './saveNewPassword.ts'; +export { default as getDateTime } from './getDateTime.ts';