11 lines
555 B
TypeScript
11 lines
555 B
TypeScript
import { ignorePackage, performAction } from '@/lib/game/actions';
|
|
|
|
// POST /api/packages/:id/ignore (v0.29.0, ISS-047 part B) — no body. Dismisses an OPEN job so it
|
|
// leaves the market permanently; the top-up logic spawns a replacement on the next tick. No penalty,
|
|
// nothing else changes. 404 unknown id; 409 unless open. On success returns the full state snapshot.
|
|
|
|
export async function POST(_req: Request, ctx: { params: Promise<{ id: string }> }) {
|
|
const { id } = await ctx.params;
|
|
return performAction((inst) => ignorePackage(inst, id));
|
|
}
|