Skip to content

Commit

Permalink
Polity-Dance
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Tetarwal committed Aug 10, 2024
1 parent 6c143d3 commit b35d341
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ const userModel = require(`./models/user.js`);
const articleModel = require(`./models/article.js`);


app.set('view engine', 'ejs');
// app.set('view engine', 'ejs');
// app.use(express.static(resolve(__dirname, 'public')));

app.set("views", __dirname + "/views");
app.set("view engine", "ejs");
app.use(express.static(__dirname + "public"));

app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(express.static(resolve(__dirname, 'public')));
app.use(cookieParser());

// Cloudinary configuration
Expand Down

0 comments on commit b35d341

Please sign in to comment.