Recently delving into the world of factories, my main goal is to store the current settings from page load into the database. I aim to update these settings whenever I click somewhere on the page. Unfortunately, I am encountering an error that says
POST http://localhost:8080/api/settings/ 405 (Method Not Allowed)
, preventing me from successfully saving to the database.
EDIT - The issue was not with the code itself, but rather with the fact that I had forgotten to include the POST command in my server. Apologies for the oversight.