okfde / froide

Freedom Of Information Portal
MIT License
366 stars 86 forks source link

api for post upload #888

Open krmax44 opened 6 days ago

krmax44 commented 6 days ago

notable changes:

ts client example:

import { retrieveFoiMessage } from './api/index.ts'

retrieveFoiMessage({
  path: { id: '22699' }
}).then((response) => {
  console.log(response.data?.kind) // "email" | "post" | "fax" | "upload" | "phone" | "visit" | "import" | undefined
})