refactor: 💡 implement new pathing for host catalogs

This commit is contained in:
Randall Morey committed 2020-09-10 16:19:27 -04:00
1 parent 4dfd9dd658
commit e359473811
18 files changed
+127 -50

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import ApplicationAdapter from './application';
export default class HostCatalogAdapter extends ApplicationAdapter {
// =attributes
/**
* Host catalogs use the new, unprefixed pathing style.
* @override
*/
hasScopePrefix = false;
}
@@ -0,0 +1,13 @@
import ApplicationSerializer from './application';
export default class HostCatalogSerializer extends ApplicationSerializer {
// =attributes
/**
* Serialized the scope ID into the `scope_id` field.
* @type {boolean}
*/
serializeScopeID = true;
}