"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.adminWpRoutes = adminWpRoutes;
const controller_1 = require("./controller");
function adminWpRoutes(fastify) {
    return __awaiter(this, void 0, void 0, function* () {
        //-------------------------------------------------------------------------------
        // HEALTH CHECK
        fastify.get("health/", controller_1.getHealthCheck);
        //-------------------------------------------------------------------------------
        // FORMULAIRES INDIVIDUELS
        fastify.get("forms/business-plan/", controller_1.getBusinessPlan);
        fastify.get("forms/accompagnement/", controller_1.getAccompagnement);
        fastify.get("forms/market-research/", controller_1.getMarketResearch);
        fastify.get("forms/networking/", controller_1.getNetworking);
        fastify.get("forms/sourcing/", controller_1.getSourcing);
        fastify.get("forms/prospecting/", controller_1.getProspecting);
        //-------------------------------------------------------------------------------
        // DONNÉES GLOBALES
        fastify.get("forms/", controller_1.getAllForms);
        fastify.get("forms/stats/", controller_1.getFormStats);
        fastify.get("forms/all-data/", controller_1.getAllData);
        //-------------------------------------------------------------------------------
        // DIAGNOSTIC
        fastify.get("forms/diagnostic/", controller_1.getGFDiagnostic);
        //-------------------------------------------------------------------------------
        // RECHERCHE
        fastify.get("forms/search/", controller_1.searchEntries);
        //-------------------------------------------------------------------------------
        fastify.log.info("✅ WP Gravity Forms routes registered");
    });
}
