Factoring gsheet read

This commit is contained in:
forceoranj
2021-10-18 20:46:32 +02:00
parent 40640ef544
commit 3398f4f42d
21 changed files with 2414 additions and 212 deletions

View File

@@ -10,7 +10,7 @@ import chalk from "chalk"
import devServer from "./devServer"
import ssr from "./ssr"
import { getJAVGameList } from "../gsheets/jav"
import { getJeuxJavList } from "../gsheets/jeuxJav"
import config from "../config"
const app = express()
@@ -31,7 +31,7 @@ app.use(express.static(path.resolve(process.cwd(), "public")))
if (__DEV__) devServer(app)
// Google Sheets requests
app.get("/javGames", getJAVGameList)
app.get("/JeuxJav", getJeuxJavList)
// Use React server-side rendering middleware
app.get("*", ssr)