feat(ntfy): add auth support

This commit is contained in:
Ali BARIN
2022-12-05 00:45:02 +01:00
parent 46bfc597ec
commit 6995323a45
5 changed files with 85 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
import defineApp from '../../helpers/define-app';
import addAuthHeader from './common/add-auth-header';
import auth from './auth';
export default defineApp({
name: 'Ntfy',
@@ -10,4 +11,6 @@ export default defineApp({
baseUrl: 'https://ntfy.sh',
apiBaseUrl: 'https://ntfy.sh',
primaryColor: '56bda8',
beforeRequest: [addAuthHeader],
auth,
});