refactor: Use ESM (#8358)
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import * as Koa from 'koa';
|
||||
import Koa from 'koa';
|
||||
|
||||
import { IEndpoint } from './endpoints';
|
||||
import authenticate, { AuthenticationError } from './authenticate';
|
||||
import call from './call';
|
||||
import { ApiError } from './error';
|
||||
import { IEndpoint } from './endpoints.js';
|
||||
import authenticate, { AuthenticationError } from './authenticate.js';
|
||||
import call from './call.js';
|
||||
import { ApiError } from './error.js';
|
||||
|
||||
export default (endpoint: IEndpoint, ctx: Koa.Context) => new Promise<void>((res) => {
|
||||
const body = ctx.request.body;
|
||||
|
Reference in New Issue
Block a user