- RMM Overshell (migration 077): admin page, dispatch UI, executor/worker, target resolver, script registry (AD/DHCP/DNS/event-log/services/software/network/loglift) - LogLift evidence pipeline (migration 078): upload webhook, B2 storage client, receiver/matcher, EventLogCollector PowerShell script - IT Glue audit + write-back (migrations 075, 076): asset-audit runner, ticket xrefs, applications/configurations browse pages + apply/revert/audit endpoints - Link-aware analyzer bundles (migration 073) + provider toggle (migration 074): link-discovery service, OpenRouter LLM provider, related-tickets/itglue-suggestion panels, analyze-bundle endpoint - Endpoint data model + device-link reconciliation (migrations 079, 080): conflicts admin page, reconciler service, resolve endpoints - Dashboard overhaul: integration-health service + alerts, overview/health endpoints - Permissions: add itglue + rmm scopes; middleware: public /api/rmm/loglift route Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
22 lines
744 B
TypeScript
22 lines
744 B
TypeScript
/**
|
|
* GET /api/analyzer/itglue/applications/:id/writes
|
|
*
|
|
* Returns the write history for a single asset (for the asset detail page).
|
|
* Auth-only — admins use the same data plus the dedicated /admin/itglue-writes
|
|
* page for cross-asset views.
|
|
*/
|
|
|
|
import { NextRequest, NextResponse } from 'next/server';
|
|
import { requireAuth } from '@/lib/auth-utils';
|
|
import { listWritesForAsset } from '@/lib/services/analyzer/asset-audit/persistence';
|
|
|
|
export async function GET(
|
|
_request: NextRequest,
|
|
{ params }: { params: Promise<{ id: string }> }
|
|
) {
|
|
const { error } = await requireAuth();
|
|
if (error) return error;
|
|
const { id } = await params;
|
|
const writes = await listWritesForAsset(id, 50);
|
|
return NextResponse.json({ writes });
|
|
}
|