Implement URL XSS attack
This commit is contained in:
1 parent
f81e9be320
commit
48bfcc9c75
19 files changed
+243
-61
No files matched your search
@@ -4,4 +4,10 @@ const BASE_URL = "http://localhost:3000/exercises"
|
||||
|
||||
export async function getAllExerciseGroups() {
|
||||
return await axios.get(BASE_URL)
|
||||
}
|
||||
|
||||
export async function updateExercise(exerciseGroupNr: number, exerciseNr: number, state: boolean) {
|
||||
let url = BASE_URL + "/" + exerciseGroupNr + "/" + exerciseNr + "/" + (state ? "1" : "0")
|
||||
|
||||
return await axios.post(url)
|
||||
}
|
||||
Reference in new issue
Block a user