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.
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.