This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/frontend/utils/routeHelpers.js
2017-05-29 18:04:26 -07:00

19 lines
322 B
JavaScript

// @flow
export function homeUrl(): string {
return '/dashboard';
}
export function newCollectionUrl(): string {
return '/collections/new';
}
export function searchUrl(query: string): string {
if (query) return `/search/${query}`;
return `/search`;
}
export function notFoundUrl(): string {
return '/404';
}