mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-11 10:53:47 +02:00
Add variable to API endpoint
Allow API to retrun max_connections for frontend database page
This commit is contained in:
@@ -6,6 +6,7 @@ export interface ServerDatabase {
|
||||
username: string;
|
||||
connectionString: string;
|
||||
allowConnectionsFrom: string;
|
||||
maxConnections: string;
|
||||
password?: string;
|
||||
}
|
||||
|
||||
@@ -15,6 +16,7 @@ export const rawDataToServerDatabase = (data: any): ServerDatabase => ({
|
||||
username: data.username,
|
||||
connectionString: `${data.host.address}:${data.host.port}`,
|
||||
allowConnectionsFrom: data.connections_from,
|
||||
maxConnections: data.max_connections,
|
||||
password: data.relationships && data.relationships.password ? data.relationships.password.attributes.password : undefined,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user