Introduce GET only API endpoints
[MAILPOET-2378]
This commit is contained in:
committed by
Jack Kitterhing
parent
c450efa4df
commit
0bd46d72e0
@ -13,6 +13,10 @@ class NewsletterTemplates extends APIEndpoint {
|
||||
'global' => AccessControl::PERMISSION_MANAGE_EMAILS,
|
||||
];
|
||||
|
||||
protected static $get_methods = [
|
||||
'getAll',
|
||||
];
|
||||
|
||||
function get($data = []) {
|
||||
$id = (isset($data['id']) ? (int)$data['id'] : false);
|
||||
$template = NewsletterTemplate::findOne($id);
|
||||
|
Reference in New Issue
Block a user