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 KillerController {
|
||||
|
||||
constructor() {
|
||||
if (!KillerController.instance) {
|
||||
KillerController.instance = this;
|
||||
}
|
||||
return KillerController.instance;
|
||||
}
|
||||
|
||||
async killBackend(req, res) {
|
||||
console.log("Killing backend.")
|
||||
res.status(200).json({ message: "Backend killed." });
|
||||
console.log(kill);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = new KillerController();
|
||||
Reference in new issue
Block a user