mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Enable verbatim module syntax + more API routes
This commit is contained in:
parent
991a2cba84
commit
be9b2e3376
84 changed files with 438 additions and 192 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { getConfig } from "@config";
|
||||
import { APIRouteMeta } from "~types/api";
|
||||
import type { APIRouteMeta } from "~types/api";
|
||||
|
||||
export const applyConfig = (routeMeta: APIRouteMeta) => {
|
||||
const config = getConfig();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ContentFormat } from "~types/lysand/Object";
|
||||
import type { ContentFormat } from "~types/lysand/Object";
|
||||
|
||||
export const getBestContentType = (contents: ContentFormat[]) => {
|
||||
// Find the best content and content type
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Application } from "@prisma/client";
|
||||
import type { Application } from "@prisma/client";
|
||||
|
||||
/**
|
||||
* Check if an OAuth application is valid for a route
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { APActivity, APObject } from "activitypub-types";
|
||||
import { NodeObject } from "jsonld";
|
||||
import type { APActivity, APObject } from "activitypub-types";
|
||||
import type { NodeObject } from "jsonld";
|
||||
|
||||
export const jsonResponse = (
|
||||
data: object,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue