From 6c964c8c7bf59a36e15f226a12d8c79d65802f05 Mon Sep 17 00:00:00 2001 From: Eric Clemmons Date: Sun, 6 Sep 2015 15:59:24 -0500 Subject: [PATCH] Add favicon.ico to avoid annoying errors --- examples/react-v0.13/public/favicon.ico | Bin 0 -> 198 bytes examples/react-v0.13/src/app.js | 1 + examples/react-v0.14/public/favicon.ico | Bin 0 -> 198 bytes examples/react-v0.14/src/app.js | 5 +++++ 4 files changed, 6 insertions(+) create mode 100644 examples/react-v0.13/public/favicon.ico create mode 100644 examples/react-v0.14/public/favicon.ico diff --git a/examples/react-v0.13/public/favicon.ico b/examples/react-v0.13/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..85a4d9fac03ba838f37feca9d583478bd4afd647 GIT binary patch literal 198 xcmZQzU<5(|0VXiLfq{WR42U&=SOAC>fEXkX0u5jillcGtKc*mwA|N9u!2sz^B%}ZU literal 0 HcmV?d00001 diff --git a/examples/react-v0.13/src/app.js b/examples/react-v0.13/src/app.js index cc71fee..2564b8a 100644 --- a/examples/react-v0.13/src/app.js +++ b/examples/react-v0.13/src/app.js @@ -10,6 +10,7 @@ import routes from "./routes"; export default express() // Serve minified assets .use(express.static(path.join(__dirname, "../dist"))) + .use(express.static(path.join(__dirname, "../public"))) // Let React handle all routes .get("*", function(req, res) { diff --git a/examples/react-v0.14/public/favicon.ico b/examples/react-v0.14/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..85a4d9fac03ba838f37feca9d583478bd4afd647 GIT binary patch literal 198 xcmZQzU<5(|0VXiLfq{WR42U&=SOAC>fEXkX0u5jillcGtKc*mwA|N9u!2sz^B%}ZU literal 0 HcmV?d00001 diff --git a/examples/react-v0.14/src/app.js b/examples/react-v0.14/src/app.js index 53961a9..134d9b7 100644 --- a/examples/react-v0.14/src/app.js +++ b/examples/react-v0.14/src/app.js @@ -1,5 +1,6 @@ import express from "express"; import Location from "react-router/lib/Location"; +import path from "path"; import React from "react"; import { renderToString } from "react-dom/server"; import { Resolver } from "react-resolver"; @@ -8,6 +9,10 @@ import Router from "react-router"; import routes from "./routes"; export default express() + // Serve minified assets + .use(express.static(path.join(__dirname, "../dist"))) + .use(express.static(path.join(__dirname, "../public"))) + // Let React handle all routes .get("*", function(req, res) { const location = new Location(req.path, req.query);