Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const login = this.restangular.one('/api/admin/login').customPOST(
- { username: this.username, password: this.password},
- '',
- {},
- {
- 'Content-Type': 'application/json',
- 'Access-Control-Request-Headers': 'Origin',
- 'Access-Control-Allow-Origin': '*'
- }
- ).subscribe($response => {
- console.log($response.data.data);
- console.log(login);
- }, $error => {
- console.log($error);
- });
- /* const login = this.restangular.one('/api/admin/login').post(
- {},
- ).subscribe($response => {
- console.log($response.data.data);
- }, $error => {
- console.log($error);
- });*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement