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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -