mirror of
https://github.com/LukasKanka/api_test.git
synced 2026-11-11 14:34:36 +01:00
refactor: restructure to monorepo with backends and apiTest
- Move web/backend to backends/potter-api - Move web/frontend to backends/potter-api/frontend - Add root package.json with npm workspaces - Update README.md with monorepo navigation - Update .github/workflows/api-tests.yml for dynamic test discovery - Update bruno_test_scenario.md paths - Fix .gitignore to allow JSON data files - Add three new AI tests in apiTest/PotterAPI/AI/ Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
1 parent
2e185b47ef
commit
d0cdabbf11
57 files changed
+292
-35
No files matched your search
@@ -0,0 +1,14 @@
|
||||
const houses = require('../houses.json');
|
||||
|
||||
exports.houses_list = function (req, res) {
|
||||
res.json(houses);
|
||||
}
|
||||
|
||||
exports.specific_house = function (req, res) {
|
||||
let result = houses.find(house => house.id == req.params.houseId);
|
||||
if (typeof result == 'undefined') {
|
||||
res.status(404)
|
||||
res.send({ message: "House not found" });
|
||||
}
|
||||
res.send(result);
|
||||
}
|
||||
Reference in new issue
Block a user