text: const express = require('express');
  const path = require('path');
  const cookieParser = require('cookie-parser');
  const logger = require('morgan');
  
  const indexRouter = require('./routes/index');
  const objectRouter = require('./routes/object');
  const fileUpload = require('express-fileupload');
  
  const app = express();
  
  app.use(logger('dev'));
  app.use(express.json());
  app.use(express.urlencoded({ extended: false }));
  app.use(cookieParser());
  app.use(express.static(path.join(__dirname, 'public')));
  
  app.use(fileUpload());
  app.use('/', indexRouter);
  app.use('/object', objectRouter);
  
  module.exports = app;
  