import type { Core } from '@strapi/strapi'; import type { SyncService } from '../services/sync'; export default ({ strapi }: { strapi: Core.Strapi }) => ({ async resync(ctx: any) { const service = strapi.plugin('strapi-plugin-atproto').service('sync') as SyncService; ctx.body = await service.resyncAll(ctx.request.body ?? {}); }, });