mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-11 04:48:32 +03:00
change linter to standard
This commit is contained in:
30
src/index.js
30
src/index.js
@@ -1,12 +1,12 @@
|
||||
import http from "http";
|
||||
import express from "express";
|
||||
import initialize from "./initialize";
|
||||
import middleware from "./middleware";
|
||||
import api from "./api";
|
||||
import config from "./config";
|
||||
import http from 'http'
|
||||
import express from 'express'
|
||||
import initialize from './initialize'
|
||||
import middleware from './middleware'
|
||||
import api from './api'
|
||||
import config from './config'
|
||||
|
||||
let app = express();
|
||||
app.server = http.createServer(app);
|
||||
let app = express()
|
||||
app.server = http.createServer(app)
|
||||
|
||||
initialize(controller => {
|
||||
app.use(
|
||||
@@ -14,18 +14,18 @@ initialize(controller => {
|
||||
config,
|
||||
controller
|
||||
})
|
||||
);
|
||||
)
|
||||
app.use(
|
||||
"/api",
|
||||
'/api',
|
||||
api({
|
||||
config,
|
||||
controller
|
||||
})
|
||||
);
|
||||
)
|
||||
|
||||
app.server.listen(process.env.PORT || config.port, () => {
|
||||
console.log(`Started on port ${app.server.address().port}`);
|
||||
});
|
||||
});
|
||||
console.log(`Started on port ${app.server.address().port}`)
|
||||
})
|
||||
})
|
||||
|
||||
export default app;
|
||||
export default app
|
||||
|
||||
Reference in New Issue
Block a user