Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/routes/account/[_id].svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<script>
export let accountData;
// console.log("client _id", accountData);
console.log("client _id", accountData);

$: projects = accountData.projects;

Expand All @@ -42,7 +42,7 @@
<li>
<a
class="hover:underline text-blue-500"
href="project/{project._id}"
href="project/{accountData._id}/{project._id}"
rel="prefetch"
id={project._id}>
{project.projectName}
Expand Down
21 changes: 21 additions & 0 deletions src/routes/project/[...slug].svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<script context="module">
export async function preload({ params }) {
console.log("params in project", { params });
let [account, project] = params.slug;

return { account, project };
}
</script>

<script>
export let account, project;
</script>

<!-- src/routes/blog/[...slug].svelte -->
<svelte:head>
<title>Individual project</title>
</svelte:head>
<h1>Individual project</h1>

<p>account id => {account}</p>
<p>project id => {project}</p>