remove loging by defolt

This commit is contained in:
Nikola Petrov 2024-07-17 00:45:12 +02:00
parent b1babe3c50
commit 9175cb8b5f

4
app.ts
View File

@ -1,6 +1,5 @@
import express from "express";
import path from 'path'
import morgan from 'morgan'
import 'dotenv/config'
const hostname = '127.0.0.1';
@ -11,7 +10,8 @@ const app = express();
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'hbs');
app.use(morgan('dev'));
// import morgan from 'morgan'
// app.use(morgan('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(express.static(path.join(__dirname, 'public')));