REST Service for POPCORN - ILIAS
alex
2025-06-10 0c2d8b058b4edd21922b5b4eca6c149046aee090
adding favicon
1 files added
3 files modified
9 ■■■■ changed files
app.js 6 ●●●●● patch | view | raw | blame | history
vite.config.js 1 ●●●● patch | view | raw | blame | history
vue/index.html 2 ●●● patch | view | raw | blame | history
vue/public/favicon-32x32.webp patch | view | raw | blame | history
app.js
@@ -191,6 +191,12 @@
//    reply.sendFile('dist/index.html', {maxAge: 0, immutable: false})
// })
// const favicon = fs.readFileSync("./favicon-32x32.webp")
// fastify.get("/ui/favicon.webp", async function (req, res) {
//    console.log("<<<<<<<<<<<<<<<<<<<<< favicon", favicon.length)
//    res.type("image/webp").send(favicon)
// })
const indexFile = fs.readFileSync(path.join(__dirname, "vue/dist", 'index.html'), 'utf8')
fastify.setNotFoundHandler(function (req, res) {
   console.log("!!!")
vite.config.js
@@ -19,6 +19,7 @@
export default defineConfig({
   base: routerBase,
   root: path.join(__dirname, 'vue'),
   // publicDir: path.join(__dirname, 'public'),
   plugins: [
      vue(),
      vueDevTools(),
vue/index.html
@@ -2,7 +2,7 @@
<html lang="">
  <head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico">
    <link rel="icon" type="image/webp" href="/favicon-32x32.webp">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>globus-ilias-rest UI</title>
  </head>
vue/public/favicon-32x32.webp
Binary files differ