UNPKG

@tdb/web

Version:

Common condiguration for serving a web-site and testing web-based UI components.

14 lines (12 loc) 267 B
import { R } from '../../common'; import { Router } from './Router'; /** * Navigates to the given path. */ export function push(path: string, res?: any) { if (res && R.is(Function, res.redirect)) { res.redirect(path); } else { Router.push(path); } }