File size: 286 Bytes
b2d7d99
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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
}