mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-05 01:31:41 +02:00
Start new Node.js-based backend
This commit is contained in:
13
backend/karaoqueue-backend/src/index.ts
Normal file
13
backend/karaoqueue-backend/src/index.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import express = require("express");
|
||||
|
||||
const app: express.Application = express();
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hello World!');
|
||||
// tslint:disable-next-line: no-console
|
||||
console.log(req.headers["user-agent"]);
|
||||
});
|
||||
app.listen(3000, () => {
|
||||
// tslint:disable-next-line: no-console
|
||||
console.log('App is listening on port 3000!');
|
||||
});
|
Reference in New Issue
Block a user