Qortal UI - Main Code Repository A User Interface for the Qortal Blockchain Project. Truly decentralized web hosting, application hosting, communications, data storage, and full infrastructure for the future global decentralized digital world.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
543 B

3 years ago
const PLUGINS = 'plugins'
const BUILD = 'build'
const WATCH = 'watch'
/**
* @package Plugins Controller
* @param { String } type
*/
const pluginsController = (type) => {
switch (type) {
case PLUGINS:
const path = require('path')
return [
{
folder: path.join(__dirname, 'plugins/core'),
name: 'core'
}
]
3 years ago
case BUILD:
return require('./build.js')
3 years ago
case WATCH:
return require('./watch.js')
3 years ago
default:
return
}
}
module.exports = pluginsController