This commit is contained in:
lab
2023-10-25 09:08:45 +03:00
commit 088bcdc4a6
109 changed files with 10821 additions and 0 deletions

19
33/app.js Normal file
View File

@@ -0,0 +1,19 @@
const express = require('express');
const app = express();
app.set('view engine', 'pug');
app.use('/contact', function (request, response) {
response.render('contact', {
title: 'Мои контакты',
emailsVisible: true,
emails: ['gavgav@mycorp.com', 'mioaw@mycorp.com'],
phone: '+1234567890',
});
});
app.use('/', function (request, response) {
response.send('Главная страница');
});
app.listen(3000);