Skip to content

Commit

Permalink
favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
hsc-nue committed Sep 22, 2023
1 parent e230632 commit 1b537da
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import jwt from "jsonwebtoken";
var QRCode = require("qrcode");
const { I18n } = require("i18n");
const path = require("path");
var favicon = require('serve-favicon')

// we must ensure that no write access to the file system is needed; as we are running on a readonly serverless platform
const i18n = new I18n({
Expand All @@ -32,6 +33,7 @@ const app = express();

// middleware
app.use(express.static("public"));
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
app.use(express.json());
app.use(cookieParser());
app.use(bodyParser.urlencoded({ extended: true }));
Expand Down
2 changes: 2 additions & 0 deletions dist/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
var QRCode = require("qrcode");
const { I18n } = require("i18n");
const path = require("path");
var favicon = require('serve-favicon');
// we must ensure that no write access to the file system is needed; as we are running on a readonly serverless platform
const i18n = new I18n({
locales: ["en", "de"],
Expand All @@ -37,6 +38,7 @@ const i18n = new I18n({
const app = express();
// middleware
app.use(express.static("public"));
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
app.use(express.json());
app.use(cookieParser());
app.use(bodyParser.urlencoded({ extended: true }));
Expand Down
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"nodemailer": "^6.9.3",
"playwright": "^1.37.1",
"qrcode": "^1.5.3",
"serve-favicon": "^2.5.0",
"short-uuid": "^4.2.2",
"uuid": "^9.0.0",
"validator": "^13.9.0"
Expand Down
Binary file added public/favicon.ico
Binary file not shown.

0 comments on commit 1b537da

Please sign in to comment.