Skip to content
Snippets Groups Projects
Commit 0d5cb283 authored by hollum's avatar hollum
Browse files

get single user

parent 9d5aebc9
No related branches found
No related tags found
No related merge requests found
......@@ -83,9 +83,10 @@ async function createExercise() {
const username = sessionStorage.getItem("username");
console.log("USERNAME:", username);
let response2 = await sendRequest("GET", `${HOST}/api/users/`);
let response2 = await sendRequest("GET", `${HOST}/api/users/${username}/`);
let data2 = await response2.json();
console.log("USER:", data2.results.map((item) => console.log(item)));
console.log("*USER", data2)
//console.log("USER:", data2.results.map((item) => console.log(item)));
}
function handleEditExerciseButtonClick() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment