refactory: make link api as module