noahgsolomon / Codefoli

Building portfolio websites for developers who have better things to do
https://codefoli.com
MIT License
74 stars 12 forks source link

move away from ResponseEntity<?> #43

Closed noahgsolomon closed 1 year ago

noahgsolomon commented 1 year ago

move away from this type of type model. The methods should be returning a single type of JSON format. Each method can have its own type of JSON format, but for any return case, it should adhere to this. And this means we should be saying if the return.status === 'OK' or something. Not checking solely if response.ok is true in frontend. This is a more mundane task, so do this when ur just bored or something.

noahgsolomon commented 1 year ago

finished