Skip to content

Commit

Permalink
Move /api to /server
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Dec 3, 2023
1 parent 7ed6ad0 commit 10a204a
Show file tree
Hide file tree
Showing 20 changed files with 68 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
api/build
server/build
124 changes: 61 additions & 63 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions server/utils/allow-cross-domain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { NextFunction, Request, Response } from "express";

export const allowCrossDomain = (req: Request, res: Response, next: NextFunction) => {
res.header(`Access-Control-Allow-Origin`, '*');
next();
};
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 10a204a

Please sign in to comment.