All file imports change from commonjs to es-module
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
const SearchHistory = require("../../../searchHistory/searchHistory");
|
||||
const configuration = require("../../../config/configuration").getInstance();
|
||||
const TMDB = require("../../../tmdb/tmdb");
|
||||
import SearchHistory from "../../../searchHistory/searchHistory";
|
||||
import TMDB from "../../../tmdb/tmdb";
|
||||
import Configuration from "../../../config/configuration";
|
||||
|
||||
const configuration = Configuration.getInstance();
|
||||
const tmdb = new TMDB(configuration.get("tmdb", "apiKey"));
|
||||
const searchHistory = new SearchHistory();
|
||||
|
||||
@@ -35,4 +36,4 @@ function showSearchController(req, res) {
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = showSearchController;
|
||||
export default showSearchController;
|
||||
|
||||
Reference in New Issue
Block a user