aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes/service/restartPOST.js
blob: 530cc91080e8de21915523c30b63673e6b7e128b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const Route = require('../../structures/Route');

class restartPOST extends Route {
	constructor() {
		super('/service/restart', 'post', { adminOnly: true });
	}

	run(req, res) {
		res.json({ message: 'Restarting...' });
		process.exit(0);
	}
}

module.exports = restartPOST;