Permalink
Browse files

use put instead of post

  • Loading branch information...
1 parent 002d983 commit ead4e11fa3efc5640ddcf02899571ccdd1e6c56e Studener, Max committed Feb 26, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/javascripts/controllers/relations-edit.js
View
2 public/javascripts/controllers/relations-edit.js
@@ -204,7 +204,7 @@ function relationsController($scope, $http, $rootScope, $log, $location) {
$scope.createRelation = function () {
$log.warn($scope.relation);
- $http.post($scope.url, { relation: $scope.relation }).success(function (data, status, headers, config) {
+ $http.put($scope.url, { relation: $scope.relation }).success(function (data, status, headers, config) {
$log.warn(data);
$scope.message = 'There relation saved.'
$scope.messageClass = 'success';

0 comments on commit ead4e11

Please sign in to comment.