import env from "./index";

const development = `${env.API_URI}/development`;
const urlFile = `${env.API_URI}/salary`;
const orgProfile = `${env.API_URI}/org/profile`;
const url = `${env.API_URI}/salary`;
export default {
  // portfolio
  portfolio: `${development}/portfolio`,
  portfolioId: (id: string) => `${development}/portfolio/${id}`,

  file: (name: string, group: string, id: string) =>
    `${urlFile}/file/${name}/${group}/${id}`,
  fileByFile: (name: string, group: string, id: string, fileName: string) =>
    `${urlFile}/file/${name}/${group}/${id}/${fileName}`,

  subFileByFileName: (
    name: string,
    group: string,
    id: string,
    subId: string,
    fileName: string
  ) => `${urlFile}/sub-file/${name}/${group}/${id}/${subId}/${fileName}`,
  developmentRequest:`${orgProfile}/development-request`,

  fileByPath:(path:string)=> `${url}/file/${path}`,
};
