mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
Allow creation of space
* other fixes and cleanups
This commit is contained in:
@@ -18,6 +18,11 @@ export async function getSpaceById(spaceId: string): Promise<ISpace> {
|
||||
return req.data;
|
||||
}
|
||||
|
||||
export async function createSpace(data: Partial<ISpace>): Promise<ISpace> {
|
||||
const req = await api.post<ISpace>("/spaces/create", data);
|
||||
return req.data;
|
||||
}
|
||||
|
||||
export async function updateSpace(data: Partial<ISpace>): Promise<ISpace> {
|
||||
const req = await api.post<ISpace>("/spaces/update", data);
|
||||
return req.data;
|
||||
|
||||
Reference in New Issue
Block a user