Skip to content

lmaftuleac/tny-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tny-http

http service for Tny framework

How to use

Tny('app')
    
    .include('http')

    .run(['$http',function($http) {

        $http.send({
            url : 'https://reqres.in/api/users',
            method : "POST",
            data : {
                "name": "morpheus",
                "job": "leader"
            },
            async : true,
            callback : function(data){
                console.log(data);
            },
            error : function(err) {
                console.log(err);
            }
        });

    }])
    
    .build();

About

http service for light-ng framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published