angular - How to pass optional parameters http api in angular4? -
in project api's like
in login know user required pin or not
if user required pin need pass pin every api http://192.168.2.3/cloud/public/api/role/add/userpin
if not same api need call without pin http://192.168.2.3/cloud/public/api/role/add
here userpin not token, passing jwt token every request in headers. it's verification.(for history purpose did what)
userpin(like 1234) optional parameter api, depend's on user
i new angular, please me
Comments
Post a Comment