From 32ae46aa2697af75b04af7aceddf2e1e6e6caa5b Mon Sep 17 00:00:00 2001 From: Simon Davies Date: Thu, 5 Jan 2017 16:46:10 +0000 Subject: [PATCH] Update app.js Added a GET Method to the Form class, so we can also perform a get request this.form.get(url).then..... --- public/js/app.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/js/app.js b/public/js/app.js index 079e591..6f2e303 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -105,6 +105,15 @@ class Form { this.errors.clear(); } + + /** + * Send a GET request to the given URL. + * . + * @param {string} url + */ + get(url) { + return this.submit('get', url); + } /**