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

add edit modal & fix some features

This commit is contained in:
Rokt33r
2015-05-30 14:06:40 +09:00
parent b8e10f320d
commit 6cf723eabe
20 changed files with 241 additions and 770 deletions

View File

@@ -22,6 +22,12 @@ angular.module('codexen.services')
return $http.get(url)
}
var update = function (id, params) {
var url = apiUrl + 'snippets/id/' + id
return $http.put(url, params)
}
var destroy = function (id) {
var url = apiUrl + 'snippets/id/' + id
@@ -32,6 +38,7 @@ angular.module('codexen.services')
findByUser: findByUser,
create: create,
show: show,
delete: destroy
delete: destroy,
update: update
}
})