const dropdown = document.getElementById("author");
dropdown.insertAdjacentHTML("beforeend", '');
function append(response) {
response.forEach((elem) => {
dropdown.insertAdjacentHTML(
"beforeend",
``
);
});
}
// TODO: Add api list endpoint
fetch("/auth/api/list")
.then((response) => response.json())
.then((response) => append(response));