React
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import * as api from "./base";
|
||||
import type { Setting } from "./models";
|
||||
|
||||
export async function getSetting(id: string, abortController?: AbortController): Promise<Setting> {
|
||||
return await api.get(
|
||||
{
|
||||
url: `/settings/${id}`,
|
||||
},
|
||||
abortController,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user