Repository URL to install this package:
|
Version:
7.0.3 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* we may have things like route-here/:named?optional
* this way we can get them by name easily
*/
const config_1 = require("../config");
const routePathCurrent = Object.seal({
path: '',
exact: true,
strict: false,
});
exports.routePathCurrent = routePathCurrent;
/**
* @modifies routePaths
*/
const routeToAttributes = (route) => {
const attributes = {
key: route.path,
// exact: route.exact,
path: route.path,
component: route.component,
};
config_1.config.get('routePathsList').push(route.path);
return attributes;
};
exports.routeToAttributes = routeToAttributes;
//# sourceMappingURL=routes.js.map