feat(houseofrc): preview and send results to the event's entries, heats or final placings (1.83.0)
This commit is contained in:
1 parent
f4a62b92d2
commit
ebdc6104e6
17 files changed
+295
-15
No files matched your search
@@ -496,6 +496,10 @@ app.post("/api/houseofrc/entries", async (req, res) => {
|
||||
const result = await houseOfRc.getEventEntries(req.body?.eventId);
|
||||
res.status(result.ok ? 200 : result.status === 400 ? 400 : 502).json(result);
|
||||
});
|
||||
app.post("/api/houseofrc/results", async (req, res) => {
|
||||
const result = await houseOfRc.postResults(req.body?.eventId, req.body?.entries);
|
||||
res.status(result.ok ? 200 : result.status === 400 ? 400 : 502).json(result);
|
||||
});
|
||||
|
||||
app.post("/api/state", (req, res) => {
|
||||
if (!req.body || typeof req.body !== "object") {
|
||||
|
||||
Reference in new issue
Block a user