1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-17 19:51:42 +00:00

snippet list scaffolded

This commit is contained in:
Rokt33r
2015-05-27 20:01:53 +09:00
parent 092a2f3e8a
commit c83e542ea0
12 changed files with 202 additions and 13 deletions

16
src/services/snippet.js Normal file
View File

@@ -0,0 +1,16 @@
angular.module('codexen.services')
.factory('Snippet', function ($http, $auth, apiUrl) {
var findByUserId = function (userId) {
var url = apiUrl + 'snippets'
return $http.get(url, {
params: {
userId: userId
}
})
}
return {
findByUserId: findByUserId
}
})