29 lines
710 B
TypeScript
Raw Normal View History

/*
Default top-level page route names (excludes entity pages)
*/
export enum PageRoutes {
/**
* Server-side authentication route
*/
AUTHENTICATE = '/authenticate',
LOG_IN = '/login',
SEARCH_RESULTS = '/search/:type?',
SEARCH = '/search',
BROWSE = '/browse',
BROWSE_RESULTS = '/browse/:type',
DATASETS = '/datasets',
ASSETS = '/assets',
ANALYTICS = '/analytics',
POLICIES = '/policies',
}
/**
* Name of the auth cookie checked on client side (contains the currently authenticated user urn).
*/
export const CLIENT_AUTH_COOKIE = 'actor';
/**
* Name of the unique browser id cookie generated on client side
*/
export const BROWSER_ID_COOKIE = 'bid';