diff --git a/routes/api.php b/routes/api.php index d6da08d..84315dc 100644 --- a/routes/api.php +++ b/routes/api.php @@ -10,4 +10,9 @@ Route::get('get_all_records', [KeyValueController::class, 'index']); Route::get('object/{key}', [KeyValueController::class, 'show']); -Route::post('object', [KeyValueController::class, 'store']); \ No newline at end of file +Route::post('object', [KeyValueController::class, 'store']); + +Route::fallback(function () { + return response()->json([ + 'message' => 'Endpoint Not Found. If error persists, contact admin'], 404); +});