xigt / sleipnir

RESTful API for interfacing the ODIN database
MIT License
0 stars 0 forks source link

A simple way to disable endpoints #2

Open goodmami opened 7 years ago

goodmami commented 7 years ago

If all endpoints (e.g. DELETE /corpora/xyz) are available, it is very easy for someone to delete another's data. These can be disabled per-installation by, e.g., commenting out the relevant function. It would be better if these could be disabled (or enabled, perhaps) via a config file.