add teacher and admin portals

This commit is contained in:
SowinskiBraeden committed 2023-01-11 11:03:25 -08:00
1 parent e3a01ef9d1
commit 32052982c1
8 files changed
+160 -7

No files matched your search

+1 -5
View File
@@ -17,7 +17,7 @@
},
methods: {
logout() {
const res = fetch(`${this.API_URL}/logout`, {
fetch(`${this.API_URL}/logout`, {
method: 'POST',
credentials: 'include',
headers: {
@@ -29,10 +29,6 @@
status: response.status,
})).then(res => res)
);
// if (res.status != 200) // do something
if (res.data.success) this.$router.push('/');
}
}
}