- client site insagram

This commit is contained in:
tmshv committed 2016-03-23 02:39:46 +03:00
1 parent 883a510c5c
commit ef3ebef8fd
3 files changed
+1 -48

No files matched your search

-23
View File
@@ -1,23 +0,0 @@
angular.module('hudozka.instagram', [])
.controller('InstagramController', function ($scope, $http) {
//$scope.auth = function() {
// $http.get("/instagram/auth/url")
// .success(function (data) {
// $window.location.href = data.url;
// });
//};
$http.get('/instagram/user')
.then(i => i.data)
.then(user => {
$scope.user = user;
});
$scope.invite = function() {
$http.get('/instagram/invite')
.then(i => i.data)
.success(data => {
$scope.inviteCode = data.code;
});
};
});