Feat: Filter and improved UI
This commit is contained in:
@@ -73,4 +73,10 @@ class DepartmentController extends Controller
|
||||
$department->delete();
|
||||
return response()->noContent();
|
||||
}
|
||||
|
||||
public function getDepartments()
|
||||
{
|
||||
$departments = Department::all();
|
||||
return response()->json($departments);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user