Major Backend SI Update part 2: added controllers
This commit is contained in:
1 parent
a51e207707
commit
dbb00fdb61
38 files changed
+2129
-1231
No files matched your search
@@ -0,0 +1,18 @@
|
||||
class PingController {
|
||||
|
||||
constructor() {
|
||||
if (!PingController.instance) {
|
||||
PingController.instance = this;
|
||||
}
|
||||
return PingController.instance;
|
||||
}
|
||||
|
||||
ping(req, res) {
|
||||
console.log("Ping Pong...")
|
||||
|
||||
res.status(200).json({ message: 'pong' });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = new PingController();
|
||||
Reference in new issue
Block a user