MCPcopy Create free account
hub / github.com/agent-tower/core / useCreateProject

Function useCreateProject

packages/web/src/hooks/use-projects.ts:113–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 * POST /api/projects
112 */
113export function useCreateProject() {
114 const queryClient = useQueryClient()
115
116 return useMutation({
117 mutationFn: (input: CreateProjectInput) =>
118 apiClient.post<Project>('/projects', input),
119 onSuccess: () => {
120 queryClient.invalidateQueries({ queryKey: queryKeys.projects.all })
121 },
122 })
123}
124
125/**
126 * 更新项目

Callers 1

CreateProjectModalFunction · 0.90

Calls 1

postMethod · 0.80

Tested by

no test coverage detected