added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import ActiveModelAdapter from 'active-model-adapter';
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';
import ENV from 'flaredown/config/environment';
export default ActiveModelAdapter.extend(DataAdapterMixin, {
host: ENV.apiHost,
namespace: 'api',
coalesceFindRequests: true,
// defaults
// identificationAttributeName: 'email'
// tokenAttributeName: 'token'
authorize(xhr) {
let { email, token } = this.get('session.data.authenticated');
let authData = `Token token="${token}", email="${email}"`;
xhr.setRequestHeader('Authorization', authData);
}
});