Enable verbatim module syntax + more API routes

This commit is contained in:
Jesse Wierzbinski 2023-11-22 18:10:37 -10:00
parent 991a2cba84
commit be9b2e3376
No known key found for this signature in database
84 changed files with 438 additions and 192 deletions

View file

@ -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();

View file

@ -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

View file

@ -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

View file

@ -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,