[F] Fix HTTP GET can't have body

This commit is contained in:
Hykilpikonna
2019-09-07 09:09:50 -04:00
parent 75f9dc9849
commit 8860c88b1a
+1 -1
View File
@@ -25,7 +25,7 @@ export default class Login extends Vue
// Fetch request TODO: Add username and password when the https server is ready.
fetch(`${Constants.API_URL}/api/login`,
{body: JSON.stringify({username: this.username, password: this.password})})
{method: 'POST', body: JSON.stringify({username: this.username, password: this.password})})
.then(res =>
{
// Get response body text