* All file imports change from commonjs to es-module * Improved plex error responses back from api * Converted viewHistory to es module * Es-module requires file extension, updated all imports * Fix esmodule not having __dirname defined in scope * Replace dynamic-require with fs readFileSync * Short message service module function is exported as default * Resolved lint issues & ignore import/extension rule until typescript * All tests file imports changed from commonjs to es-module * Import json fixtures with new helper
16 lines
463 B
JavaScript
16 lines
463 B
JavaScript
import Configuration from "../config/configuration.js";
|
|
import app from "./app.js";
|
|
|
|
const configuration = Configuration.getInstance();
|
|
|
|
export default app.listen(configuration.get("webserver", "port"), () => {
|
|
/* eslint-disable no-console */
|
|
console.log("seasonedAPI");
|
|
console.log(
|
|
`Database is located at ${configuration.get("database", "host")}`
|
|
);
|
|
console.log(
|
|
`Webserver is listening on ${configuration.get("webserver", "port")}`
|
|
);
|
|
});
|