mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-30 01:51:53 +00:00
bind delete button
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user