How to link my login api with database in ionic?

how to link my login api with database in ionic?