forlooptanzania / ride-my-way

Car pooling app (of developers) by developers for developers in Tanzania
22 stars 6 forks source link

Can i use get, post, put method of different pages, in one API file ? or do i need diferrent file for every page? #38

Open elineka opened 5 years ago

elineka commented 5 years ago

It is okay if it works but not recommended because its difficult to maintain it. Imagine passing through many lines of code, find one line and trying to make some changes its difficult. So you could make the code more readable by arranging properly your APIs like implementing it in different file.