Files
ragflow/web/src/pages/agent/hooks/use-build-webhook-url.ts
buua436 9ad752f497 Refa:migrate agent webhook routes to REST APIs (#14330)
### What problem does this PR solve?

migrate agent webhook routes to REST APIs

### Type of change
- [x] Refactoring
2026-04-24 17:55:53 +08:00

9 lines
215 B
TypeScript

import { useParams } from 'react-router';
export function useBuildWebhookUrl() {
const { id } = useParams();
const text = `${location.protocol}//${location.host}/api/v1/agents/${id}/webhook`;
return text;
}