Files
EMS-ESP32/interface/src/utils/route.ts

2 lines
121 B
TypeScript

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