We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use angular (and this gem) with rails.
If I have form like this : <form ng-submit="submitLogin(loginForm)" role="form" ng-init="loginForm = {}">
<form ng-submit="submitLogin(loginForm)" role="form" ng-init="loginForm = {}">
And it's always hitting my route : /api/auth/sign_in
However my api path is : /api/v3/auth/sign_in
How do I change this to hit the right route?
The text was updated successfully, but these errors were encountered:
@c0mrade - have you read the configuration section of the readme?
If all of your routes start with /api/v3, I would recommend changing the apiUrl param to /api/v3.
/api/v3
apiUrl
angular.module('myApp', ['ng-token-auth']) .config(function($authProvider) { $authProvider.configure({ apiUrl: '/api/v3' }) })
Sorry, something went wrong.
sweet thanks. Yes I have read it but I wasn't sure what was right thing to do. I'm new to angular. I had this suggestion before :
<form action="{{ ContextUrl + '/api/v1/auth/sign_in' }}">
Didn't like it. Your answer is much better. thanks again
Cool, just re-open this issue if for some reason that doesn't work.
No branches or pull requests
I use angular (and this gem) with rails.
If I have form like this :
<form ng-submit="submitLogin(loginForm)" role="form" ng-init="loginForm = {}">
And it's always hitting my route :
/api/auth/sign_in
However my api path is :
/api/v3/auth/sign_in
How do I change this to hit the right route?
The text was updated successfully, but these errors were encountered: