sanity in frontend-land
This commit is contained in:
parent
7742d69a48
commit
0859b28c07
@ -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>
|
||||
|
||||
@ -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`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user