Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/router / dist / deps / routes.js
Size: Mime:
"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