Skip to content

Commit 8e56d91

Browse files
committed
fix(adapter): add missing namespace configuration
1 parent f394233 commit 8e56d91

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

addon/adapters/search-result.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
import { service } from "@ember/service";
2+
13
export default function (BaseClass) {
24
return class SearchResultAdapter extends BaseClass {
5+
@service("alexandria-config") config;
6+
7+
get namespace() {
8+
return this.config.namespace ?? "/api/v1";
9+
}
10+
311
// Overwrite and replicate the query function,
412
// because ember doesnt pass adapterOptions to urlForQuery
513
query(_, type, query, __, options) {

0 commit comments

Comments
 (0)