diff --git a/src/routes/FancyAppRail.svelte b/src/routes/FancyAppRail.svelte
index 7b5e202..1850e50 100644
--- a/src/routes/FancyAppRail.svelte
+++ b/src/routes/FancyAppRail.svelte
@@ -5,7 +5,7 @@
-
-
OpenAPI
-
Generator
-
- 3.1.0
-
-
+
+ File
@@ -128,12 +134,8 @@
Components
-
-
-
-
@@ -152,7 +154,7 @@
d="M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"
/>
- API Reference
+ API Reference
diff --git a/src/routes/paths/[...pathName]/+page.svelte b/src/routes/paths/[...pathName]/+page.svelte
new file mode 100644
index 0000000..a608b72
--- /dev/null
+++ b/src/routes/paths/[...pathName]/+page.svelte
@@ -0,0 +1,206 @@
+
+
+
+
+ Path: {$page.params.pathName}
+
+
+
+ {#if $selectedSpec.spec.paths != undefined && $page.params.pathName != undefined && $selectedSpec.spec.paths[$page.params.pathName] != undefined}
+
+
+
+ General
+
+
+
+
+
+
+
+
+ Custom Servers
+
+
+ Here you can add custom servers for this specific call.
+ {#if tempPath.servers && tempPath.servers.length > 0}
+ {#each tempPath.servers as server, index}
+
+ {/each}
+ {/if}
+
+
+
+
+
+
+ Parameters
+
+
+ {#if tempPath.parameters}
+ {#each tempPath.parameters.filter(filterParams) as param}
+
+ {/each}
+ {/if}
+
+
+
+
+
+
+
+
+
Operations
+
+
Here you can add operations for this path. Select only the operations you want to support
+
+ {#if $selectedSpec.spec.paths[$page.params.pathName]}
+
+ {#each Object.values(HttpMethods) as method}
+
+
+
+ Edit
+
+
+ {/each}
+
+ {/if}
+ {/if}
+
diff --git a/src/routes/paths/[...pathName]/z/[method]/+page.svelte b/src/routes/paths/[...pathName]/z/[method]/+page.svelte
new file mode 100644
index 0000000..aa3989f
--- /dev/null
+++ b/src/routes/paths/[...pathName]/z/[method]/+page.svelte
@@ -0,0 +1,14 @@
+
+
+
+
+ Path: {$page.params.pathName}#{$page.params.method}
+
+
+
diff --git a/src/routes/paths/[index]/+error.svelte b/src/routes/paths/[index]/+error.svelte
deleted file mode 100644
index 2857820..0000000
--- a/src/routes/paths/[index]/+error.svelte
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
- An unfortunate error occured.
-
-
-
-
diff --git a/src/routes/paths/[index]/+page.svelte b/src/routes/paths/[index]/+page.svelte
deleted file mode 100644
index ba0603e..0000000
--- a/src/routes/paths/[index]/+page.svelte
+++ /dev/null
@@ -1,171 +0,0 @@
-
-
-
-
- {data.pathName}
-
-
-
-
-
-
- General
-
-
-
-
-
-
-
-
- Custom Servers
-
-
- Here you can add custom servers for this specific call.
- {#if tempPath.servers && tempPath.servers.length > 0}
- {#each tempPath.servers as server, index}
-
- {/each}
- {/if}
-
-
-
-
-
-
- Parameters
-
-
- {#if tempPath.parameters}
- {#each tempPath.parameters.filter(filterParams) as param}
-
- {/each}
- {/if}
-
-
-
-
-
-
-
-
-
- Operations
-
-
-
- Here you can add operations for this path. Select only the operations you want to support
-
-
-
- {#each Object.values(HttpMethods) as method}
-
- {/each}
-
-
-
-
-
diff --git a/src/routes/paths/[index]/+page.ts b/src/routes/paths/[index]/+page.ts
deleted file mode 100644
index cf8c258..0000000
--- a/src/routes/paths/[index]/+page.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import type { PageLoad } from './$types';
-import { error } from '@sveltejs/kit';
-import type { OpenAPIV3_1 } from '$lib/openAPITypes';
-import { selectedSpec } from '$lib/db';
-
-export const load = (async (event) => {
- // check if path param is an integer
- if (!/^\d+$/.test(event.params.index)) error(404, 'Invalid path index');
- const index = parseInt(event.params.index);
- let apiObject: OpenAPIV3_1.Document;
- selectedSpec.subscribe((value) => (apiObject = value.spec));
- let pathName: string | undefined;
- // @ts-expect-error - svelte stores populate the value
- if (apiObject && !apiObject.paths) error(404, 'No paths found in the OpenAPI document');
-
- const path = (() => {
- // @ts-expect-error - svelte stores populate the value
- const paths = Object.keys(apiObject.paths) || [];
- if (paths.length === 0) return;
- if (paths.length <= index) return;
- pathName = paths[index];
- // @ts-expect-error - svelte stores populate the value
- if (!apiObject || !apiObject.paths) return;
- return apiObject.paths[paths[index]];
- })();
- return {
- path,
- pathName
- };
-}) satisfies PageLoad;
diff --git a/src/routes/paths/[index]/error.jpg b/src/routes/paths/[index]/error.jpg
deleted file mode 100644
index 354ca82..0000000
Binary files a/src/routes/paths/[index]/error.jpg and /dev/null differ