funmaker / Hybooru

Hydrus-based booru-styled imageboard in React
https://booru.funmaker.moe/
MIT License
95 stars 15 forks source link

Support automated/scheduled database rebuilds #22

Closed katanacrimson closed 1 year ago

katanacrimson commented 1 year ago

Would like to perform regular rebuilds of the database, but unfortunately the endpoint to do so requires CSRF tokens which makes it rather annoying to automate.

If there could be a way implemented to trigger such via CLI or via REST interface with an API key or somesuch, it would be greatly appreciated.

funmaker commented 1 year ago

Will get rig of CSRF token in next version, since CSRF prevention is useless here as there is no session or cookies to hijack.

funmaker commented 1 year ago

Done in v1.7.0