Backend update renamed controllers and models to be singular

This commit is contained in:
Max G
2019-07-30 19:21:12 +00:00
parent 7806a206b2
commit 0d86aa4ff9
11 changed files with 41 additions and 48 deletions

View File

@@ -143,7 +143,7 @@
let vm = this
//Component is activated with NoteId in place, lookup text with associated ID
if(this.$store.getters.getLoggedIn){
axios.post('/api/notes/get', {'noteId': noteId})
axios.post('/api/note/get', {'noteId': noteId})
.then(response => {
//Set up local data
@@ -248,7 +248,7 @@
this.saveDebounce = setTimeout(() => {
//Only notify user if saving - may help with debugging in the future
vm.statusText = 'Saving'
axios.post('/api/notes/update', postData).then( response => {
axios.post('/api/note/update', postData).then( response => {
vm.statusText = 'Saved'
vm.updated = Math.round((+new Date)/1000)