|
|
@ -41,7 +41,7 @@ class HierarchyFtthController extends Controller |
|
|
|
return response()->json([ |
|
|
|
return response()->json([ |
|
|
|
'message' => 'Hierarchy FTTH created successfully.', |
|
|
|
'message' => 'Hierarchy FTTH created successfully.', |
|
|
|
'data' => $hierarchyFtth |
|
|
|
'data' => $hierarchyFtth |
|
|
|
]); |
|
|
|
],200); |
|
|
|
} catch (\Exception $e) { |
|
|
|
} catch (\Exception $e) { |
|
|
|
return response()->json([ |
|
|
|
return response()->json([ |
|
|
|
'message' => 'Failed to create hierarchy FTTH.', |
|
|
|
'message' => 'Failed to create hierarchy FTTH.', |
|
|
@ -72,7 +72,7 @@ class HierarchyFtthController extends Controller |
|
|
|
return response()->json([ |
|
|
|
return response()->json([ |
|
|
|
'message' => 'Hierarchy FTTH updated successfully.', |
|
|
|
'message' => 'Hierarchy FTTH updated successfully.', |
|
|
|
'data' => $hierarchyFtth |
|
|
|
'data' => $hierarchyFtth |
|
|
|
]); |
|
|
|
],200); |
|
|
|
} catch (\Exception $e) { |
|
|
|
} catch (\Exception $e) { |
|
|
|
return response()->json([ |
|
|
|
return response()->json([ |
|
|
|
'message' => 'Failed to update hierarchy FTTH.', |
|
|
|
'message' => 'Failed to update hierarchy FTTH.', |
|
|
@ -90,7 +90,7 @@ class HierarchyFtthController extends Controller |
|
|
|
return response()->json([ |
|
|
|
return response()->json([ |
|
|
|
'message' => 'Hierarchy FTTH deleted successfully.', |
|
|
|
'message' => 'Hierarchy FTTH deleted successfully.', |
|
|
|
'data' => $hierarchyFtth |
|
|
|
'data' => $hierarchyFtth |
|
|
|
]); |
|
|
|
],200); |
|
|
|
} catch (\Exception $e) { |
|
|
|
} catch (\Exception $e) { |
|
|
|
return response()->json([ |
|
|
|
return response()->json([ |
|
|
|
'message' => 'Failed to delete hierarchy FTTH.', |
|
|
|
'message' => 'Failed to delete hierarchy FTTH.', |
|
|
|