Custom rest API route not passing data along

So the value is hidden away in the array passed in to the callback. Accessed via the named capture group:

$request['id']

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)