Hello everyone, I try to get data from API route in my online app but return null but when I tried to access my API route locally it will load data..
When I try to hit this in my local http://www.notification.test/api/notifications-get?app_code=iaccs
This will be the return:
[{"id":1,"app_code":"iaccs","data":"\"{data:'value'}\"","message":"New Update","custom_message":"Update notification sent","read_at":null,"created_at":"2019-01-12 07:23:10","updated_at":"2019-01-12 07:23:10"},{"id":2,"app_code":"iaccs","data":"\"{data:'value'}\"","message":"Nesdasda","custom_message":"Update nawala","read_at":null,"created_at":"2019-01-12 07:25:04","updated_at":"2019-01-12 07:25:04"},{"id":3,"app_code":"iaccs","data":"\"{data:'value'}\"","message":"New new","custom_message":"Update nawala","read_at":null,"created_at":"2019-01-12 07:27:05","updated_at":"2019-01-12 07:27:05"},{"id":4,"app_code":"iaccs","data":"\"{data:'value'}\"","message":"New errror","custom_message":"error","read_at":null,"created_at":"2019-01-12 07:30:09","updated_at":"2019-01-12 07:30:09"},{"id":5,"app_code":"iaccs","data":"\"{data:'value'}\"","message":"New errrorsssssss","custom_message":"error niiiii","read_at":null,"created_at":"2019-01-12 07:31:29","updated_at":"2019-01-12 07:31:29"},{"id":6,"app_code":"iaccs","data":"\"{test:'value'}\"","message":"sample message","custom_message":"sample custom message","read_at":null,"created_at":"2019-01-12 07:37:27","updated_at":"2019-01-12 07:37:27"}]
But when I hit in online (Production) http://35.246.184.134/api/notifications-get?app_code=iaccs
The result is Blank... There's no data.
How to solve it?