sanity in frontend-land

This commit is contained in:
Felix Hamann 2018-01-24 22:11:31 +01:00
parent 7742d69a48
commit 0859b28c07
2 changed files with 20 additions and 7 deletions

View File

@ -1 +1,18 @@
<p>Penis</p>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>TITLE</title>
<meta name="description" content="DESCRIPTION">
<link rel="stylesheet" href="PATH">
<!--[if lt IE 9]>
<script src = "http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
</body>
</html>

View File

@ -3,9 +3,6 @@ var fs = require('fs');
//create a server object:
http.createServer(function (req, res) {
let data = "wurst";
console.log(req.url);
res.setHeader('Access-Control-Allow-Origin', 'http://127.0.0.1:5500');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,content-type');
@ -37,11 +34,10 @@ http.createServer(function (req, res) {
});
break;
default:
res.writeHead(200, {'Content-Type': 'text/html'});
res.write("käse");
res.writeHead(301, {'Location': '/home'});
res.end();
break;
}
}).listen(8080); //the server object listens on port 8080
// start with `supervisor server.js`
// start with `supervisor server.js`