Initial commit
This commit is contained in:
13
artifacts/api-server/src/app.ts
Normal file
13
artifacts/api-server/src/app.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import express, { type Express } from "express";
|
||||
import cors from "cors";
|
||||
import router from "./routes";
|
||||
|
||||
const app: Express = express();
|
||||
|
||||
app.use(cors());
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
|
||||
app.use("/api", router);
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user