import client from './client';
export const toolsApi = {
    list: () => client.get('/api/tools').then(r => r.data),
    get: (id) => client.get(`/api/tools/${id}`).then(r => r.data),
    create: (t) => client.post('/api/tools', t).then(r => r.data),
    update: (id, t) => client.put(`/api/tools/${id}`, t).then(r => r.data),
    delete: (id) => client.delete(`/api/tools/${id}`),
};
