UNPKG

strapi-pfapi

Version:

a strapi plugin library uses local and redis caches to achieve single digit milliseconds on average api response time.

22 lines (16 loc) 329 B
'use strict'; const find_project_root = require('./find-project-root'); module.exports = { set, get }; let project_root_dir; function set(root_dir) { project_root_dir = root_dir; } function get() { if (!project_root_dir) { project_root_dir = find_project_root(); } return project_root_dir; }