mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 07:15:58 +00:00
11 lines
257 B
JavaScript
11 lines
257 B
JavaScript
import useFetch from './useFetch';
|
|
|
|
export default function useConnectionInfo(conid) {
|
|
/** @type {import('@dbgate/types').StoredConnection} */
|
|
const connection = useFetch({
|
|
params: { conid },
|
|
url: 'connections/get',
|
|
});
|
|
return connection;
|
|
}
|