import { HttpRouter } from "convex/server"; import type { RegisterFeedbackRoutesOptions } from "../types"; export type { RegisterFeedbackRoutesOptions }; /** * Register all feedback HTTP routes on the provided router. * * This allows consumer apps to integrate the feedback API into their own HTTP router. * * NOTE: Convex httpRouter does NOT support dynamic path parameters like :id or {id}. * We use pathPrefix to match routes with dynamic segments and parse them in the handler. * * @example * ```typescript * // In your app's convex/http.ts: * import { httpRouter } from "convex/server"; * import { registerFeedbackRoutes } from "@convex-dev/feedback/convex"; * * const http = httpRouter(); * * // Register feedback routes with optional prefix * registerFeedbackRoutes(http, { pathPrefix: "/feedback" }); * * // Your other routes... * http.route({ path: "/api/health", method: "GET", handler: ... }); * * export default http; * ``` * * Registered routes: * - GET {prefix}/api/prompt/{ticketNumber} - Fetch AI prompt for a ticket * - GET {prefix}/api/items - List bug reports and feedback * - GET {prefix}/api/items/{ticketNumber} - Get a single item * - PATCH {prefix}/api/items/{ticketNumber}/status - Update item status * - PATCH {prefix}/api/items/{ticketNumber}/archive - Archive/unarchive item * * @param router - The HttpRouter to register routes on * @param options - Optional configuration */ export declare function registerFeedbackRoutes(router: HttpRouter, options?: RegisterFeedbackRoutesOptions): void; declare const http: HttpRouter; export default http; //# sourceMappingURL=http.d.ts.map