Remove leftovers, and make / a plain health check (#121) #149
+9
−553
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #121
What
/in the backend showed the database name, the database user and the server time to anyone. It is now a plain health check:OKwhen the backend can reach the database, and HTTP 503 when it cannot.backend/db.js.src/db.tsreplaced it, and only the Vinmonopolet import still used it.scripts/(the script, its test, README,.env.exampleandpackage.json). We use X-Wines now, and nothing else used it.deploy.sh,check.mjsand the systemd service stay.backend/src/scripts/wine-stats.st. It had the wrong file ending, so it never ran, and nothing used it./api/helloproxy fromvite.config.ts. It only pointed to/, and the frontend never called it.docs/setup.mddescribes the new/.Not done: the optional last task (moving the wine and review code into their own folders). That is a bigger change than we should make on the last day.
Tests
npm run checkpasses.curl http://localhost:3001/answersOK.The backend changes, so the VM needs a deploy after the merge.
AI: Claude found the files that were no longer used and suggested the changes. I made them and checked them.