Skip to content

Commit

Permalink
Merge pull request #415 from hngprojects/AdeGneus-patch-1
Browse files Browse the repository at this point in the history
chore: update index.ts
  • Loading branch information
PreciousIfeaka authored Jul 31, 2024
2 parents 7e060c9 + 3f2ed8c commit 7ad90e7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ server.get("/api/v1", (req: Request, res: Response) => {
server.get("/api/v1/probe", (req: Request, res: Response) => {
res.send("I am the express api responding for team panther");
});
server.use("/api/v1", runTestRouter);
server.use("/run-tests", runTestRouter);
server.use("/api/v1/queues", ServerAdapter.getRouter());

server.use("/api/v1", authRoute);
Expand Down Expand Up @@ -94,14 +94,8 @@ server.use(errorHandler);

AppDataSource.initialize()
.then(async () => {
// await seed();
server.use(express.json());
// server.get("/", (req: Request, res: Response) => {
// // res.send("Hello world");
// res.send("Hello world");
// });
server.get("/", (req: Request, res: Response) => {
// res.send("Hello world");
res.send({ message: "I am the express API responding for team panther" });
});

Expand Down

0 comments on commit 7ad90e7

Please sign in to comment.