Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
reformat index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcc1212 committed Feb 16, 2024
1 parent cbf8bfb commit beb0d67
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions newAPI/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ import postRouter from "./routes/postRoutes";
import userRouter from "./routes/userRoutes";
import loggerMiddleware from "./middlewares/logger";



const app = express();
const port = 3101;

app.use(express.json());
app.use(loggerMiddleware);

app.use("/posts",postRouter);
app.use("/users",userRouter);
app.use("/posts", postRouter);
app.use("/users", userRouter);

async function main() {
await mongoose.connect("mongodb://100.125.70.69:27017/socialAPI", {
Expand Down

0 comments on commit beb0d67

Please sign in to comment.