Skip to content

Commit

Permalink
Merge pull request #5 from AbhinavMishra32/server
Browse files Browse the repository at this point in the history
Server
  • Loading branch information
AbhinavMishra32 authored Dec 3, 2023
2 parents f6adb15 + 4b0d823 commit 9ba24fb
Show file tree
Hide file tree
Showing 20 changed files with 1,303 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
.VSCodeCounter
.VSCodeCounter
.env
node_modules
.vscode
.DS_Store
.idea
.vscode
15 changes: 15 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const express = require('express');
const path = require("path");
const app = express();

var options = {
dotfiles: 'ignore',
etag: false,
extensions: ['htm', 'html','css','js','ico','jpg','jpeg','png','svg'],
index: ['index.html'],
maxAge: '1m',
redirect: false
}
app.use(express.static('public', options));

module.exports = app
Loading

0 comments on commit 9ba24fb

Please sign in to comment.