({ request })
| 137 | baseUrl: API_BASE_URL, |
| 138 | middleware: { |
| 139 | async onRequest({ request }) { |
| 140 | const headers = await getAuthHeaders(); |
| 141 | |
| 142 | // Apply auth headers to the request |
| 143 | if (headers['Authorization']) { |
| 144 | request.headers.set('Authorization', headers['Authorization']); |
| 145 | } |
| 146 | if (headers['X-Organization-Id']) { |
| 147 | request.headers.set('X-Organization-Id', headers['X-Organization-Id']); |
| 148 | } |
| 149 | |
| 150 | if (!request.headers.has('Content-Type')) { |
| 151 | request.headers.set('Content-Type', 'application/json'); |
| 152 | } |
| 153 | |
| 154 | return request; |
| 155 | }, |
| 156 | }, |
| 157 | }); |
| 158 |
nothing calls this directly
no test coverage detected