feat(houseofrc): fetch driver names and brands by transponder (1.79.0)
This commit is contained in:
1 parent
0c54e8b58a
commit
3829ca1cab
17 files changed
+319
-7
No files matched your search
@@ -484,6 +484,10 @@ app.post("/api/houseofrc/test", async (_req, res) => {
|
||||
const result = await houseOfRc.testConnection();
|
||||
res.status(result.ok ? 200 : 502).json(result);
|
||||
});
|
||||
app.post("/api/houseofrc/transponders", async (req, res) => {
|
||||
const result = await houseOfRc.lookupTransponders(req.body?.transponders);
|
||||
res.status(result.ok ? 200 : 502).json(result);
|
||||
});
|
||||
|
||||
app.post("/api/state", (req, res) => {
|
||||
if (!req.body || typeof req.body !== "object") {
|
||||
|
||||
Reference in new issue
Block a user