final
This commit is contained in:
		
							
								
								
									
										19
									
								
								task33/app.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								task33/app.js
									
									
									
									
									
										Normal 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); | ||||
		Reference in New Issue
	
	Block a user
	 kogleee
					kogleee