text: const express = require('express');
  const app = express();
  const initRouter = require('./router/init');
  const userRouter = require('./router/user');
  const notepadRouter = require('./router/notepad');
  
  const {sequelize} = require('./models');
  sequelize.sync();
  
  const session = require('express-session');
  
  app.use(session({
      key: 'sid',
      secret: 'secret',
      resave: false,
      saveUninitialized: true,
      cookie: {maxAge: 600000}
  }));
  
  app.use(express.json());
  app.use(express.static('../client'));
  app.use('/init', initRouter);
  app.use('/user', userRouter);
  app.use('/notepad.sql', notepadRouter);
  
  app.get('/', (req, res) => {
      res.redirect('/init');
  });
  
  const server = app.listen(8080, () => {
      console.log('Server started!');
  });
  
  