aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mastodon/index.js
blob: 9be0938c5aaa1f1651689ee68ab707ae7930c193 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports = Ferdi => {
  class Mastodon extends Ferdi {
    validateServer(URL) {
      const api = `${URL}`;
      return new Promise((resolve, reject) => {
        $.get(api, () => {
          resolve();
        }).fail(reject);
      });
    }
  }

  return Mastodon;
};