summary refs log tree commit diff
path: root/api/src/routes/stop.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactor to mono-repo + upgrade packagesMadeline2022-09-251-26/+0
|
* Updated stop.tsunknownPerson1152021-12-291-1/+1
| | | | | | | now using bitwise operators and dividing the `rights` value so you can have other rights whilst having the `OPERATOR` right for example: `3` is `1` and `2` combined NOTE: a potential issue has been uncovered while testing; if you have more than 1 thread the server will only stop 1 thread and the rest of the server will continue to run
* Updated stop.tsunknownPerson1152021-12-291-6/+7
| | | | | | updated stop.ts so it checks for user rights instead of the SYSTEM flag which can possibly cause some unnecessary complications when it comes to instance management *also has been tested with multiple tokens to be sure that this does NOT permit normal users to POST to the /stop API route **NOTE**: instance owners will have to re-run `npm run setup` for these changes to take effect
* Update api/src/routes/stop.tsunknownPerson1152021-12-251-7/+2
| | | Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
* Create stop.ts (for /stop API route)unknownPerson1152021-12-251-0/+30
patched up the route and polished it note: THIS API IS ONLY FOR DEVELOPMENT PURPOSES