analytics/assets/js/dashboard/url.js
2021-07-22 09:20:10 +03:00

8 lines
210 B
JavaScript

export function apiPath(site, path = '') {
return `/api/stats/${encodeURIComponent(site.domain)}${path}`
}
export function sitePath(site, path = '') {
return `/${encodeURIComponent(site.domain)}${path}`
}