Faas semi worfking
This commit is contained in:
@ -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'),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user