1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-30 01:51:53 +00:00

bind delete button

This commit is contained in:
Rokt33r
2015-05-29 18:58:46 +09:00
parent e5b265e497
commit 7c9d276a1f
6 changed files with 27 additions and 140 deletions

View File

@@ -22,9 +22,16 @@ angular.module('codexen.services')
return $http.get(url)
}
var destroy = function (id) {
var url = apiUrl + 'snippets/id/' + id
return $http.delete(url)
}
return {
findByUser: findByUser,
create: create,
show: show
show: show,
delete: destroy
}
})