mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
3 lines
123 B
TypeScript
3 lines
123 B
TypeScript
export const routeMatches = (route: string, pathname: string) =>
|
|
pathname.startsWith(route + '/') || pathname === route;
|