[TS] Renamed file extensions to typescript
This commit is contained in:
parent
4d5b347767
commit
4a6f20fa7b
31 changed files with 12 additions and 0 deletions
8
lib/routes/react-route.ts
Normal file
8
lib/routes/react-route.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import express, { Router } from "express";
|
||||
import path from "path";
|
||||
const router = Router();
|
||||
router.use("/", express.static(path.resolve("./build")));
|
||||
router.get("/*", (req, res) =>
|
||||
res.sendFile(path.resolve("./build/index.html")),
|
||||
);
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue