Files
Athou_commafeed/commafeed-client/src/app/server/thunks.ts
2024-06-13 23:28:45 +02:00

5 lines
228 B
TypeScript

import { createAppAsyncThunk } from "app/async-thunk"
import { client } from "app/client"
export const reloadServerInfos = createAppAsyncThunk("server/infos", async () => await client.server.getServerInfos().then(r => r.data))