Commit 4f9635b0 by Triyah Fatmawati

Add lokasi file EC dan nomor surat di API SAKU

parent 82437923
......@@ -17,7 +17,8 @@ public function index($tahun){
->whereHas('penelaah', function($query) use ($tahun) {
$query->where('tahun', $tahun);
})
->orderBy('nip')
->orderBy('nip', 'asc')
->orderBy('created_at','desc')
->get();
if($penelaah){
......@@ -33,7 +34,9 @@ public function index($tahun){
'kode_kategori' => $pen->penelaah->kategori->kode_kategori,
'nama_kategori' => $pen->penelaah->kategori->nama_kategori,
// 'poin_saku' => $pen->penelaah->kategori->poin_saku,
'tahun' => $pen->penelaah->tahun
'tahun' => $pen->penelaah->tahun,
'no_sk' => $pen->penelaah->no_sk,
'file_ec' => 'https://sipeka.unesa.ac.id/sipeka/file/'.$pen->penelaah->file_ec
];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment