Commit 5a0ac704 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fav

parent 310fad7e
...@@ -2,6 +2,7 @@ const express = require('express'); ...@@ -2,6 +2,7 @@ const express = require('express');
const path = require('path'); const path = require('path');
const cookieParser = require('cookie-parser'); const cookieParser = require('cookie-parser');
const logger = require('morgan'); const logger = require('morgan');
const favicon = require('serve-favicon');
const indexRouter = require('./routes/index'); const indexRouter = require('./routes/index');
...@@ -12,6 +13,8 @@ app.use(express.json()); ...@@ -12,6 +13,8 @@ app.use(express.json());
app.use(express.urlencoded({ extended: false })); app.use(express.urlencoded({ extended: false }));
app.use(cookieParser()); app.use(cookieParser());
app.use(favicon(path.join(__dirname,'public','favicon.ico')));
app.use(express.static(path.join(__dirname, 'public'))); app.use(express.static(path.join(__dirname, 'public')));
app.use('/node_modules',express.static(path.join(__dirname, 'node_modules'))); app.use('/node_modules',express.static(path.join(__dirname, 'node_modules')));
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
"debug": "~2.6.9", "debug": "~2.6.9",
"express": "~4.16.0", "express": "~4.16.0",
"jquery": "^3.3.1", "jquery": "^3.3.1",
"morgan": "~1.9.0" "morgan": "~1.9.0",
"serve-favicon": "^2.5.0"
} }
} }
public/favicon.ico

72.6 KB | W: | H:

public/favicon.ico

4.19 KB | W: | H:

public/favicon.ico
public/favicon.ico
public/favicon.ico
public/favicon.ico
  • 2-up
  • Swipe
  • Onion skin
<!DOCTYPE HTML> <!DOCTYPE HTML>
<html lang="en"> <html lang="en">
<head> <head>
<link rel="icon" href="favicon.ico">
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>ROS2 Testing</title> <title>ROS2 Testing</title>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment