lars-raaum / kom-inn

Kom inn repository
3 stars 6 forks source link

Refactored db handling out of peoples controller to a People model #58

Closed alkemann closed 7 years ago

alkemann commented 7 years ago

Add model concept to the backend api. Helps with consistent and safer datasource management and splits the controller layer from the model layer. Also provides a place to document and enforce constants like status and it's possible values.

alkemann commented 7 years ago

Changes best viewed in split mode or checking out and seeing the difference in index.php, the controllers and looking at the new models