diff options
Diffstat (limited to 'routes/subscribe.php')
| -rw-r--r-- | routes/subscribe.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/subscribe.php b/routes/subscribe.php index 91a611f..e081309 100644 --- a/routes/subscribe.php +++ b/routes/subscribe.php @@ -10,6 +10,7 @@ Router::getInstance()->mount('/subscribe', function (array $args) { throw new Unauthorized(); } $instance->auth->outboundPushEnabled = true; + $instance->save(); http_response_code(204); // "No Content" }); @@ -19,5 +20,6 @@ Router::getInstance()->mount('/unsubscribe', function (array $args) { throw new Unauthorized(); } $instance->auth->outboundPushEnabled = false; + $instance->save(); http_response_code(204); // "No Content" });
\ No newline at end of file |
