import express from 'express'; import boardRouter from './routes/board'; import swaggerUI from 'swagger-ui-express'; import YAML from 'yamljs'; const doc = YAML.load('src/files/SwaggerUI.yaml'); import { InitPostgres, ClosePostgres } from './database/postgres'; InitPostgres(); const app = express(); app.use(express.json()); app.use(express.text()); app.use('/swagger', swaggerUI.serve, swaggerUI.setup(doc)); app.use('/', boardRouter); app.get('*', (req, res) => { res.send("haha i ate your request"); }); app.listen(6969); // ClosePostgres();