Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit bc349e6

Browse files
committed
Added challenge data framework
1 parent 0826d7d commit bc349e6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

server/challenges/index.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
getAllChallenges: () => {
3+
return [{
4+
name: "Test",
5+
category: "Pwn",
6+
author: "Test",
7+
description: "A test challenge",
8+
points: {
9+
min: 50
10+
max: 100
11+
},
12+
files: ["static/security.txt"],
13+
id: "random-uuid-here"
14+
}]
15+
},
16+
getChallenge: id => {
17+
18+
},
19+
resetCache: () => {
20+
21+
}
22+
}

0 commit comments

Comments
 (0)