/** * functions and constants which helps to build * nextjs or react router dom navigation operations * for an entity. */ export const SkillsetCategoryNavigationTools = { edit(uniqueId: string, locale?: string) { return `${locale ? "/" + locale : ""}/skillset-category/edit/${uniqueId}`; }, create(locale?: string) { return `${locale ? "/" + locale : ""}/skillset-category/new`; }, single(uniqueId: string, locale?: string) { return `${locale ? "/" + locale : ""}/skillset-category/${uniqueId}`; }, query(params: any = {}, locale?: string) { return `${locale ? "/" + locale : ""}/skillset-categories`; }, /** * Use R series while building router in CRA or nextjs, or react navigation for react Native * Might be useful in Angular as well. **/ Redit: "skillset-category/edit/:uniqueId", Rcreate: "skillset-category/new", Rsingle: "skillset-category/:uniqueId", Rquery: "skillset-categories", };