Removed API key requirement thanks to #3

This commit is contained in:
Alan Grainger
2024-10-31 07:09:11 +01:00
parent 690bd3f688
commit f9f868f025
3 changed files with 5 additions and 13 deletions
+1 -5
View File
@@ -8,11 +8,7 @@ class Immich {
* the possible attack surface of this app.
*/
async request (endpoint: string) {
const res = await fetch(process.env.IMMICH_URL + '/api' + endpoint, {
headers: {
'x-api-key': process.env.API_KEY || ''
}
})
const res = await fetch(process.env.IMMICH_URL + '/api' + endpoint)
if (res.status === 200) {
const contentType = res.headers.get('Content-Type') || ''
if (contentType.includes('application/json')) {