import config from "./config";

let data = null;

function init() {
    data = require(config.getPath());
}

function get(segment) {
    return data ? data[segment] : null;
}

export default {
    init,
    get
};