more work on testing
This commit is contained in:
@@ -1,23 +1,21 @@
|
||||
import express from 'express';
|
||||
import path from 'path';
|
||||
import cors from 'cors';
|
||||
import dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
import { loaders } from './loaders';
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const port = 8080;
|
||||
const app = express();
|
||||
app.use(cors());
|
||||
|
||||
export const appRoot = path.resolve(__dirname);
|
||||
|
||||
export default async function main() {
|
||||
const app = express();
|
||||
async function main() {
|
||||
await loaders(app);
|
||||
app.listen(port, () => {
|
||||
console.log('listening on port ' + port);
|
||||
})
|
||||
};
|
||||
|
||||
export default app;
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user