4a234af7a3
Changes CopyOnClick to allow any. Allows database information to be copied on click. Changes layouts on database/backups to match the network tab. Changes text to lighten it one level from 400 to 300 for easier visibility. Moves database api endpoints to their own folder for some organization.
10 lines
475 B
TypeScript
10 lines
475 B
TypeScript
import { rawDataToServerDatabase, ServerDatabase } from '@/api/server/databases/getServerDatabases';
|
|
import http from '@/api/http';
|
|
|
|
export default (uuid: string, database: string): Promise<ServerDatabase> => {
|
|
return new Promise((resolve, reject) => {
|
|
http.post(`/api/client/servers/${uuid}/databases/${database}/rotate-password`)
|
|
.then((response) => resolve(rawDataToServerDatabase(response.data.attributes)))
|
|
.catch(reject);
|
|
});
|
|
};
|