const express = require('express');
const app = express();

// logging:
const morgan = require('morgan');
app.use(morgan('dev'));

const path = require('path');
const publicPath = path.join(__dirname, '../public');
app.use(express.static(publicPath));


module.exports = app;
const express = require('express');
const app = express();

const lists = require('./routes/lists-route');

// logging:
const morgan = require('morgan');
app.use(morgan('dev'));

const path = require('path');
const publicPath = path.join(__dirname, '../public');
app.use(express.static(publicPath));


app.use('/lists', lists);


module.exports = app;
add lists routest to app.js