summary refs log tree commit diff
path: root/src/api/routes/stop.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-05 17:12:21 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-05 17:16:55 +1100
commita3f2f997a3ddfafdff19bd8911f7b610326c02d8 (patch)
tree7086d2a6971ed06c6d09cda6c277fb544c3c608d /src/api/routes/stop.ts
parentchannel flags whoops (diff)
downloadserver-a3f2f997a3ddfafdff19bd8911f7b610326c02d8.tar.xz
Prettier
Diffstat (limited to 'src/api/routes/stop.ts')
-rw-r--r--src/api/routes/stop.ts16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/api/routes/stop.ts b/src/api/routes/stop.ts
index 1b4e1da9..3f49b360 100644
--- a/src/api/routes/stop.ts
+++ b/src/api/routes/stop.ts
@@ -3,10 +3,14 @@ import { route } from "@fosscord/api";
 
 const router: Router = Router();
 
-router.post("/", route({ right: "OPERATOR" }), async (req: Request, res: Response) => {
-	console.log(`/stop was called by ${req.user_id} at ${new Date()}`);
-	res.sendStatus(200);
-	process.kill(process.pid, "SIGTERM");
-});
+router.post(
+	"/",
+	route({ right: "OPERATOR" }),
+	async (req: Request, res: Response) => {
+		console.log(`/stop was called by ${req.user_id} at ${new Date()}`);
+		res.sendStatus(200);
+		process.kill(process.pid, "SIGTERM");
+	},
+);
 
-export default router;
\ No newline at end of file
+export default router;