From 99b0322e66cf7f3f141107d285e5c26414c14860 Mon Sep 17 00:00:00 2001 From: "[Valentino Heman Budiarto]" <[hemanvalentino@gmail.com]> Date: Thu, 29 Oct 2026 13:46:57 +0700 Subject: [PATCH] route --- app/api/trajectory/route.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/api/trajectory/route.js b/app/api/trajectory/route.js index c474736..e7f00f9 100644 --- a/app/api/trajectory/route.js +++ b/app/api/trajectory/route.js @@ -2,10 +2,8 @@ import { NextResponse } from 'next/server'; import fs from 'fs'; import path from 'path'; -// Lokasi penyimpanan file di dalam folder utama proyek const dataFilePath = path.join(process.cwd(), 'trajectory.json'); -// Fungsi GET untuk PLAY (membaca rute) export async function GET() { try { if (!fs.existsSync(dataFilePath)) { @@ -18,7 +16,6 @@ export async function GET() { } } -// Fungsi POST untuk SAVE (menyimpan rute) export async function POST(request) { try { const data = await request.json();