You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
518 B
18 lines
518 B
3 years ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class CurrencyController extends Controller
|
||
|
{
|
||
|
|
||
|
public function list() {
|
||
|
$CURRENCY_DATA = array(
|
||
|
array("cc" => "IDR", "symbol" => "Rp", "name" => "Indonesian rupiah"),
|
||
|
array("cc" => "USD", "symbol" => "US$", "name" => "United States dollar"),
|
||
|
);
|
||
|
|
||
|
return response()->json(['status'=>'success','code'=>200,'data'=>$CURRENCY_DATA, 'totalRecord'=>count($CURRENCY_DATA)], 200);
|
||
|
}
|
||
|
}
|