5CS024-Team1 / asset-tracker-web

Web app for NHS Asset Tracker project
http://mi-linux.wlv.ac.uk/~1700471/asset-tracker-web/
MIT License
3 stars 3 forks source link

Backend API: #18

Open JoshLmao opened 4 years ago

JoshLmao commented 4 years ago

Replace reusable code in a nice helper file/class

JoshLmao commented 4 years ago

Per the "Parsing db row", I've seen this used multiple times around the backend and when I changed one column, I had to go around figuring out where it was used and replacing it.

https://github.com/5CS024-Team1/asset-tracker-web/blob/bd0bca458ed0c8ba021e1e7431794cb4b6dcb688/api/assets/get/index.php#L38-L50

matthewward00 commented 4 years ago

Yeah something that I've noticed as well with the user, reports and assets page is that they also have some reusable code across them