mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 08:21:09 +10: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