mirror of
https://github.com/coder/coder.git
synced 2026-10-24 01:26:25 +08:00
feat: Add built-in PostgreSQL for simple production setup (#2345)
* feat: Add built-in PostgreSQL for simple production setup Fixes #2321. * Use fork of embedded-postgres for cache path
This commit is contained in:
@@ -229,6 +229,13 @@ export const suspendUser = async (userId: TypesGen.User["id"]): Promise<TypesGen
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const postFirstUser = async (
|
||||
req: TypesGen.CreateFirstUserRequest,
|
||||
): Promise<TypesGen.CreateFirstUserResponse> => {
|
||||
const response = await axios.post(`/api/v2/users/first`, req)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const updateUserPassword = async (
|
||||
userId: TypesGen.User["id"],
|
||||
updatePassword: TypesGen.UpdateUserPasswordRequest,
|
||||
|
||||
Reference in New Issue
Block a user