Add Syncthing

This commit is contained in:
Steffen Lange 2021-01-15 21:59:56 +01:00
parent a7435827e9
commit df50500390

14
modules/Syncthing.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class Syncthing extends PatchBase {
function __construct() {
parent::__construct('Syncthing Foundation', 'Syncthing', 'https://syncthing.net/downloads/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/syncthing/syncthing/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>