Browse Source

Create route to serve manifest.json.

Lee Morgan 1 năm trước cách đây
mục cha
commit
b0f089abe0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      routes/other.js

+ 1 - 0
routes/other.js

@@ -3,4 +3,5 @@ export default (app)=>{
     app.get("/index.js", (req, res)=>res.sendFile(`${global.cwd}/views/build/index.js`));
     app.get("/index.css", (req, res)=>res.sendFile(`${global.cwd}/views/build/index.css`));
     app.get("/logo.svg", (req, res)=>res.sendFile(`${global.cwd}/views/logo.svg`));
+    app.get("/manifest.json", (req, res)=>res.sendFile(`${global.cwd}/views/manifest.json`));
 }