feat(routes): service concept

This commit is contained in:
dqnid committed 2024-10-23 17:59:09 +02:00
1 parent 3e6d2b6346
commit 59c0f05b4f
3 files changed
+16

No files matched your search

+5
View File
@@ -7,6 +7,11 @@ defaultRoute.get("/", (req, res) => {
res.send("Something");
});
defaultRoute.get("/", (req, res) => {
res.status(400);
res.send("Something");
});
defaultRoute.post("/test", (req, res) => {
res.send("Something with " + JSON.stringify(req.body));
});
@@ -0,0 +1,11 @@
class UserService {
constructor() {}
getAllUsers() {}
getUserById(id: number) {
return 3;
}
}
export default UserService;
Whitespace-only changes.