- client site insagram
This commit is contained in:
1 parent
883a510c5c
commit
ef3ebef8fd
3 files changed
+1
-48
No files matched your search
@@ -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;
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in new issue
Block a user