UNPKG

@hirebus/academy

Version:

React component library for academy and learning platforms

48 lines (47 loc) 1.23 kB
/** * Centralized route path definitions * * This file contains all route path definitions used throughout the application. * Always use these constants instead of hardcoding route paths. */ /** * Main route paths */ export declare const PATHS: { /** * Course routes */ course: { /** Base path for course view */ view: string; /** Path for course creation */ create: string; /** Path for course editing */ edit: string; /** * Build a path to view a specific course * @param id - Course ID * @returns Full path to the course */ viewById: (id: string) => string; /** * Build a path to edit a specific course * @param id - Course ID * @returns Full path to edit the course */ editById: (id: string) => string; }; /** * Academy routes */ academy: { /** Base path to academy view */ index: string; /** * Build a path to view a course in the academy * @param id - Course ID * @returns Full path to the course in academy */ viewCourse: (id: string) => string; }; };