mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
(mvc) add option to output raw data on api call
This commit is contained in:
parent
e508d11f6f
commit
7c0204bcfe
@ -111,6 +111,9 @@ class ApiControllerBase extends ControllerRoot
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
} else {
|
||||
// output raw data
|
||||
echo $data;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user