mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 14:27:32 +08:00
### What problem does this PR solve? migrate agent webhook routes to REST APIs ### Type of change - [x] Refactoring
9 lines
215 B
TypeScript
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;
|
|
}
|