move api to a dedicated folder