summary refs log tree commit diff
path: root/lib/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/index.ts')
-rw-r--r--lib/index.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/index.ts b/lib/index.ts
index 61e38c8..ade7180 100644
--- a/lib/index.ts
+++ b/lib/index.ts
@@ -1,3 +1,4 @@
+import { getPost as apiGetPost } from "./getPost";
 import { getPosts as apiGetPosts } from "./getPosts";
 import { Post } from "./interfaces";
 
@@ -11,4 +12,7 @@ export default class Kronikarz {
   getPosts(): Array<Post> {
     return apiGetPosts(this.postPath);
   }
+  getPost(year: string, month: string, day: string, title: string): Post {
+    return apiGetPost({ year, month, day, title }, this.postPath);
+  }
 }