mirror of https://github.com/tooot-app/app
13 lines
347 B
TypeScript
13 lines
347 B
TypeScript
import apiInstance from '@api/instance'
|
|
import { createAsyncThunk } from '@reduxjs/toolkit'
|
|
|
|
export const updateConfiguration = createAsyncThunk(
|
|
'instances/updateConfiguration',
|
|
async (): Promise<Mastodon.Instance> => {
|
|
return apiInstance<Mastodon.Instance>({
|
|
method: 'get',
|
|
url: `instance`
|
|
}).then(res => res.body)
|
|
}
|
|
)
|