Skip to content

Commit

Permalink
Finished Aufgabe 2 for Übung 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Wagenbach committed Apr 22, 2015
1 parent 176ce93 commit 50d34f8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
Empty file added Übung_3/public/css/app.css
Empty file.
9 changes: 9 additions & 0 deletions Übung_3/public/index.html
@@ -0,0 +1,9 @@
<html>
<head>
<title>Hi!</title>
</head>
<body>
<h1>Hello!</h1>
<p>This is a .html file.</p>
</body>
</html>
2 changes: 2 additions & 0 deletions Übung_3/public/js/app.js
@@ -0,0 +1,2 @@
function jsFunction() {
}
11 changes: 8 additions & 3 deletions Übung_3/server.js
@@ -1,6 +1,11 @@
var port = 8080;

var express = require('express');
var app = express();
app.get('/', function(req, res){
res.send('Hello World!');

app.get('/*', function(request, result){
result.sendFile(__dirname + "/public" + request._parsedUrl.path); // this is clearly a security hazard
});
app.listen(8080);

app.listen(port);
console.log("Server running at http://127.0.0.1:" + port);

0 comments on commit 50d34f8

Please sign in to comment.