Skip to content

Commit

Permalink
test 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna committed Nov 14, 2024
1 parent ff2b93f commit 0dae126
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ app.use(express.urlencoded({ extended: true })); // для обробки form-d

// Налаштування статичних файлів
app.use('/css', express.static(path.join(__dirname, '../css')));
app.use('/assets/css', express.static(path.join(__dirname, '../assets/css')));

app.use('/img', express.static(path.join(__dirname, '../img')));
app.use('/js', express.static(path.join(__dirname, '../js')));


// Маршрути для відображення HTML-сторінок
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, '../index.html'));
Expand Down

0 comments on commit 0dae126

Please sign in to comment.