Faas semi worfking

This commit is contained in:
2025-08-30 23:52:37 -04:00
parent 2778cbc512
commit 67bce24899
23 changed files with 1089 additions and 135 deletions

View File

@ -37,8 +37,10 @@ export const functionApi = {
params: { app_id: appId, limit, offset },
}),
create: (data: CreateFunctionRequest) =>
api.post<FunctionDefinition>('/functions', data),
create: (data: CreateFunctionRequest) => {
console.log('Making API call to create function with data:', data);
return api.post<FunctionDefinition>('/functions', data);
},
getById: (id: string) =>
api.get<FunctionDefinition>(`/functions/${id}`),
@ -85,4 +87,6 @@ export const healthApi = {
ready: () => api.get('/ready'),
};
export default api;
export const runtimeApi = {
getRuntimes: () => api.get('/runtimes'),
};