Skip to content

Commit a1b7102

Browse files
committed
eklemeler yapıldı.
1 parent c8e8dd2 commit a1b7102

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/SystemApi/Site/News.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44

55
class News extends Service
66
{
7-
public function items($data)
7+
public function items($data = null)
88
{
99
return $this->c->backend->get('/site/news/items', $data);
1010
}
11+
12+
public function getById($id)
13+
{
14+
return $this->c->backend->get('/site/news/get-by-id/' . $id);
15+
}
1116
}

0 commit comments

Comments
 (0)