DASHA
This commit is contained in:
		
							
								
								
									
										11
									
								
								Статические файлы/app.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Статические файлы/app.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| const express = require('express'); | ||||
|  | ||||
| const app = express(); | ||||
|  | ||||
| app.use('/static', express.static(__dirname + '/public')); | ||||
|  | ||||
| app.use('/', function (request, response) { | ||||
|     response.send('<h1>Главная страница</h1>'); | ||||
| }); | ||||
|  | ||||
| app.listen(3000); | ||||
		Reference in New Issue
	
	Block a user
	 User1
					User1