mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): ♻️ Move more API routes to new OpenAPI format
This commit is contained in:
parent
166d1c59a5
commit
b755fc5d62
14 changed files with 1037 additions and 686 deletions
|
|
@ -1,8 +1,5 @@
|
|||
import { proxyUrl } from "@/response";
|
||||
import type {
|
||||
AsyncAttachment as ApiAsyncAttachment,
|
||||
Attachment as ApiAttachment,
|
||||
} from "@versia/client/types";
|
||||
import type { Attachment as ApiAttachment } from "@versia/client/types";
|
||||
import type { ContentFormat } from "@versia/federation/types";
|
||||
import {
|
||||
type InferInsertModel,
|
||||
|
|
@ -212,7 +209,7 @@ export class Attachment extends BaseInterface<typeof Attachments> {
|
|||
};
|
||||
}
|
||||
|
||||
public toApi(): ApiAttachment | ApiAsyncAttachment {
|
||||
public toApi(): ApiAttachment {
|
||||
return {
|
||||
id: this.data.id,
|
||||
type: this.getMastodonType(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue