test
This commit is contained in:
11
ejs/home.ejs
Normal file
11
ejs/home.ejs
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'>
|
||||||
|
<title>Hyprcut</title>
|
||||||
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
szia
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
13
index.js
13
index.js
@@ -0,0 +1,13 @@
|
|||||||
|
const express = require('express');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
const app = express();
|
||||||
|
app.set('trust proxy', 1);
|
||||||
|
app.use(express.json());
|
||||||
|
app.use(express.urlencoded({ extended: true }));
|
||||||
|
app.set('view engine', 'ejs');
|
||||||
|
app.set('views', path.join(__dirname, 'ejs'));
|
||||||
|
|
||||||
|
app.get('/', (req, res) => {
|
||||||
|
res.render('home');
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user