community / src /core /getAppPosts.mts
jbilcke-hf's picture
jbilcke-hf HF Staff
initial commit
b2d7d99
raw
history blame
286 Bytes
import { postDirFilePath } from "../config.mts"
import { Post } from "../types.mts"
import { readPostFiles } from "./readPostFiles.mts"
export const getAppPosts = async (appId: string): Promise<Post[]> => {
const posts = await readPostFiles(postDirFilePath, appId)
return posts
}