Skip to content

Commit

Permalink
add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
sprivite committed Mar 7, 2025
1 parent e62ba0e commit 8bab6f6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/ui/src/api/text_to_cohort/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import axios from 'axios';

const BASE_URL = 'http://127.0.0.1:8000';

export const textToCohort = async (data: any) => {
try {
const response = await axios.post(`${BASE_URL}/text_to_cohort`, data);
return response.data;
} catch (error) {
console.error('Error executing study:', error);
throw error;
}
};

// Add other API methods here as needed

0 comments on commit 8bab6f6

Please sign in to comment.