connection n8n
This commit is contained in:
parent
85e0e94e82
commit
5e5c3f69a4
@ -30,7 +30,37 @@ export async function GET(request: Request) {
|
||||
const n8nDeleteWebhookUrl = process.env.N8N_DELETE_WEBHOOK_URL;
|
||||
|
||||
// Construire la réponse
|
||||
const config = {
|
||||
const config: {
|
||||
environment: {
|
||||
hasN8NApiKey: boolean;
|
||||
n8nApiKeyLength: number;
|
||||
n8nApiKeyPrefix: string;
|
||||
n8nWebhookUrl: string;
|
||||
n8nRollbackWebhookUrl: string;
|
||||
n8nDeleteWebhookUrl: string;
|
||||
missionApiUrl: string;
|
||||
};
|
||||
urls: {
|
||||
webhookUrl: string;
|
||||
callbackUrl: string;
|
||||
rollbackUrl: string;
|
||||
deleteUrl: string;
|
||||
webhookTest?: {
|
||||
status?: number;
|
||||
statusText?: string;
|
||||
reachable?: boolean;
|
||||
note?: string;
|
||||
error?: string;
|
||||
};
|
||||
};
|
||||
status: {
|
||||
configured: boolean;
|
||||
missingApiKey: boolean;
|
||||
missingApiUrl: boolean;
|
||||
ready: boolean;
|
||||
};
|
||||
recommendations: string[];
|
||||
} = {
|
||||
// Variables d'environnement
|
||||
environment: {
|
||||
hasN8NApiKey: !!n8nApiKey,
|
||||
@ -59,7 +89,7 @@ export async function GET(request: Request) {
|
||||
},
|
||||
|
||||
// Recommandations
|
||||
recommendations: [] as string[],
|
||||
recommendations: [],
|
||||
};
|
||||
|
||||
// Ajouter des recommandations basées sur la configuration
|
||||
|
||||
Loading…
Reference in New Issue
Block a user