Skip to content

Commit 4934572

Browse files
authored
Merge pull request #270 from increments/dependabot/npm_and_yarn/multi-3b8cce0d4d
Bump express and @types/express
2 parents a5c9d99 + 43ed34c commit 4934572

File tree

4 files changed

+200
-231
lines changed

4 files changed

+200
-231
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"devDependencies": {
2525
"@emotion/react": "^11.14.0",
2626
"@types/debug": "^4.1.12",
27-
"@types/express": "^5.0.0",
27+
"@types/express": "^5.0.2",
2828
"@types/jest": "^29.5.14",
2929
"@types/node": "^22.15.21",
3030
"@types/react": "^18.3.12",
@@ -78,7 +78,7 @@
7878
"chokidar": "^4.0.3",
7979
"debug": "^4.4.0",
8080
"dotenv": "^16.5.0",
81-
"express": "^4.21.2",
81+
"express": "^5.1.0",
8282
"gray-matter": "^4.0.3",
8383
"open": "^10.1.1",
8484
"ws": "^8.18.2"

src/server/api/emoji.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ const redirect = (req: Express.Request, res: Express.Response) => {
66
res.redirect(`${cdnUrl}${req.baseUrl}${req.path}`);
77
};
88

9-
export const EmojiRouter = Router().get("/:q*", redirect);
9+
export const EmojiRouter = Router().get("/{*q}", redirect);

src/server/app.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ export async function startServer() {
2929
app.use("/assets", AssetsRouter);
3030
app.use("/emoji", EmojiRouter);
3131

32-
app.use("*", express.static(path.join(__dirname, "../public/index.html")));
32+
app.use(
33+
"*name",
34+
express.static(path.join(__dirname, "../public/index.html")),
35+
);
3336

3437
const server = createServer(app);
3538
const userConfig = await config.getUserConfig();

0 commit comments

Comments
 (0)