Update API names now that I can update iOS App

This commit is contained in:
2024-07-25 21:49:38 -05:00
parent f6af2ff738
commit a849b065a1
4 changed files with 2 additions and 13 deletions

View File

@ -22,7 +22,7 @@ export default function Tech_Table({ employees }: { employees: Employee[] }) {
const [employeeData, setEmployeeData] = useState(employees);
const fetch_employees = useCallback(async (): Promise<Employee[]> => {
const res = await fetch('/api/technicians', {
const res = await fetch('/api/get_technicians', {
method: 'GET',
headers: {
'Authorization': `Bearer ${process.env.API_KEY}`