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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -