All checks were successful
Frontend CI / build (push) Successful in 1m23s
### Description - Create a dashboard layout (with a navigation sidebar) - Only logged in users are able to access (others 404) ### Package Changes > shadcn-svelte ```json { "@lucide/svelte": "^0.545.0", "clsx": "^2.1.1", "tailwind-merge": "^3.3.1", "tailwind-variants": "^3.1.1", "tw-animate-css": "^1.4.0" } ``` ### Screenshots |Status|Screenshot| |-|-| |Logged in|| |Logged out|| ### Reference Resolves #136. ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: #137 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
11 lines
331 B
TypeScript
11 lines
331 B
TypeScript
import type { PostRepository } from '$lib/post/application/gateway/postRepository';
|
|
import type { Post } from '$lib/post/domain/entity/post';
|
|
|
|
export class GetPostUseCase {
|
|
constructor(private readonly postRepository: PostRepository) {}
|
|
|
|
execute(id: string): Promise<Post | null> {
|
|
return this.postRepository.getPost(id);
|
|
}
|
|
}
|