Files
EMS-ESP32/interface/src/utils/route.ts
2024-04-21 15:10:22 +02:00

3 lines
123 B
TypeScript

export const routeMatches = (route: string, pathname: string) =>
pathname.startsWith(route + '/') || pathname === route;