aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers/routing-helpers.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-15 17:15:09 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-15 13:54:00 +0000
commitbc76d19c6f5687dd18c96db249e0abe7ad79a673 (patch)
treed4e977f99be77d723ce93bb3866468d8b63ec038 /src/helpers/routing-helpers.ts
parentchore: npm upgrades (diff)
downloadferdium-app-bc76d19c6f5687dd18c96db249e0abe7ad79a673.tar.gz
ferdium-app-bc76d19c6f5687dd18c96db249e0abe7ad79a673.tar.zst
ferdium-app-bc76d19c6f5687dd18c96db249e0abe7ad79a673.zip
chore: typescript conversion of some minor utilities
Also removed 'targz' unused package from runtime.
Diffstat (limited to 'src/helpers/routing-helpers.ts')
-rw-r--r--src/helpers/routing-helpers.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/routing-helpers.ts b/src/helpers/routing-helpers.ts
new file mode 100644
index 000000000..18169f01b
--- /dev/null
+++ b/src/helpers/routing-helpers.ts
@@ -0,0 +1,3 @@
1import RouteParser from 'route-parser';
2
3export const matchRoute = (pattern: string, path: string) => new RouteParser(pattern).match(path);