- {#if photos.length}
+ {#if photos}
{#each photos as { id, image, slug, location, title, city }, index (id)}
@@ -499,83 +502,4 @@
-
-
-
-
+
\ No newline at end of file
diff --git a/src/routes/photos.ts b/src/routes/photos.ts
new file mode 100644
index 0000000..b41a9e8
--- /dev/null
+++ b/src/routes/photos.ts
@@ -0,0 +1,77 @@
+import type { RequestEvent, RequestHandlerOutput } from '@sveltejs/kit'
+import { fetchAPI } from '$utils/api'
+
+// Default filters values
+const defaultCountry = String(import.meta.env.VITE_FILTERS_DEFAULT_COUNTRY)
+const defaultSort = String(import.meta.env.VITE_FILTERS_DEFAULT_SORT)
+
+export async function get({ url }: RequestEvent): Promise