Update routes, mongoose schema and web flow
This commit is contained in:
18
app/partials/professor/professor.services.js
Normal file
18
app/partials/professor/professor.services.js
Normal file
@@ -0,0 +1,18 @@
|
||||
(function(){
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
.module('app.professor')
|
||||
.factory('professors', professors)
|
||||
.value('selectedCourse',{})
|
||||
.value('selectedSection',{})
|
||||
.value('profesorSeleccionado',{});
|
||||
|
||||
professors.$inject = ['$resource','$rootScope'];
|
||||
function professors($resource, $rootScope){
|
||||
return $resource('http://'+$rootScope.domainUrl+'/professors/:id', null,
|
||||
{
|
||||
'update': {method:'PUT'}
|
||||
});
|
||||
};
|
||||
})();
|
Reference in New Issue
Block a user