mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
better support for multiple languages per package
This commit is contained in:
parent
77ad337e1d
commit
a328b3eeda
4 changed files with 45 additions and 15 deletions
|
@ -50,7 +50,7 @@ const app = express();
|
|||
.flat()
|
||||
.filter(pkg => fss.exists_sync(path.join(pkg, globals.pkg_installed_file)));
|
||||
|
||||
installed_languages.forEach(pkg => new runtime.Runtime(pkg));
|
||||
installed_languages.forEach(pkg => runtime.load_package(pkg));
|
||||
|
||||
logger.info('Starting API Server');
|
||||
logger.debug('Constructing Express App');
|
||||
|
@ -100,7 +100,8 @@ const app = express();
|
|||
return {
|
||||
language: rt.language,
|
||||
version: rt.version.raw,
|
||||
aliases: rt.aliases
|
||||
aliases: rt.aliases,
|
||||
runtime: rt.runtime
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue