mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
2 lines
121 B
TypeScript
2 lines
121 B
TypeScript
export const routeMatches = (route: string, pathname: string) => pathname.startsWith(route + '/') || pathname === route;
|