Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log frisbee URI #1

Open
ducnguyendev opened this issue Jun 7, 2017 · 3 comments
Open

Log frisbee URI #1

ducnguyendev opened this issue Jun 7, 2017 · 3 comments
Assignees

Comments

@ducnguyendev
Copy link

Hi.
Please show me how to log Frisbee base URI in request.
Thank you.

@Assem-Hafez
Copy link
Contributor

Currently there is no way to access the BaseURI in your interceptor.
For now you can work around it by instantiating your interception object with BaseURI in its scope.

yourAPI.register(getInterceptionObject(yourBaseURI));
   var getInterceptionObject = function(baseURI){
   var interceptionObject={...}; // you have access to the baseURI 
   return interceptionObject;
}

@Assem-Hafez
Copy link
Contributor

hi @ducnguyendev ,
The request function is now passed the full URL in version 2.0.0

@Assem-Hafez
Copy link
Contributor

Changes will be rolled back to think about a better API.

@Assem-Hafez Assem-Hafez reopened this Jun 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants