db.sync({force: false}).then(()=>{
User.create({
"link": ["sfsf","gfhghf","hjgjhgj"],
"views": ["4","5","7"],
"likes": ["6","2","1"]
})
})
app.use(express.static('public'));
app.use('/public', express.static('public'));
<link rel="stylesheet" href="/css/header.css">
<img src="/img/18.png" alt="фото">
app.use(express.static('public'));
то в консоли будет 404 нот фаунд картинка?
var express = require('express');
var app = express();
app.set('view engine', 'ejs');
app.use('/public', express.static('public'));
app.get('/', function(req, res){
res.render('index');
});
app.listen(3000);