임에딘

add code to upload images

var http = require('http');
var fs = require('fs');
var express=require('express');
var app=express();
app.get('/', function(req,res){
fs.readFile('index.html',function(err,data){
res.writeHead(200,{'Content-Type':'text/html'});
res.end(data);
});
});
app.get('/imgs',function(req,res){
fs.readFile('logoIMG.jpg',function(err,data){
res.writeHead(200,{'Content-Type':'text/html'});
res.end(data);
});
});
app.listen(8080,function(){
console.log('Server Start.');
})
/*
http.createServer(function (req, res) {
fs.readFile('index.html', function(err, data) {
res.writeHead(200, {'Content-Type': 'text/html'});
......@@ -7,3 +28,4 @@ http.createServer(function (req, res) {
res.end();
});
}).listen(8080);
*/
......
......@@ -10,7 +10,7 @@
<body>
<p stype="fond-family:verdana;">StarCraft 2 Build Recommendation Project</p>
<img src="logoIMG.jpg" alt="StarCraft2 LOGO image">
<img src="/imgs" alt="StarCraft2 LOGO image">
<br>
<br>
<div class="col-md-3">
......