Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abbi4code committed Sep 7, 2024
1 parent e29f1a5 commit 0561f1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions server/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ dotenv_1.default.config();
app.use(express_1.default.json());
app.use(express_1.default.urlencoded({ extended: true, limit: "16kb" }));
app.use(express_1.default.static("public"));
app.get("/", (req, res) => {
res.send("Hello World");
});
app.get("/test", (req, res) => {
res.send("testing works");
});
app.use('/api', index_1.default);
app.listen(PORT, () => {
console.log(`Server running on http://localhost:${PORT}`);
Expand Down
4 changes: 3 additions & 1 deletion server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ app.use(express.static("public"));
app.get("/",(req,res)=>{
res.send("Hello World")
})

app.get("/test",(req,res)=>{
res.send("testing works")
})

app.use('/api',ruotes)

Expand Down

0 comments on commit 0561f1d

Please sign in to comment.