import { baseClient } from './base.js';

export const assetsApi = {
  list(workspaceId) {
    return baseClient.get(`/workspaces/${workspaceId}/assets`);
  },

  upload(workspaceId, file) {
    return baseClient.upload(`/workspaces/${workspaceId}/assets`, file);
  },

  delete(workspaceId, id) {
    return baseClient.delete(`/workspaces/${workspaceId}/assets/${id}`);
  },
};
