Skip to content

Commit

Permalink
app.js updated
Browse files Browse the repository at this point in the history
  • Loading branch information
JovanyAldair committed Dec 2, 2023
1 parent 3a7688d commit 42e12f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ const express = require("express")
const app = express()
const PORT = 8081
const router = express.Router()

const path = require('path')
const rootDir = require('./utils/path')

app.set('view engine', 'ejs')
app.set('views', './views')

app.use(express.static(path.join(rootDir, 'public')))
//The routes

app.get("/", (req, res) =>{
Expand Down

0 comments on commit 42e12f0

Please sign in to comment.