We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14b1158 commit f53af6eCopy full SHA for f53af6e
app/adapters/discount-code.js
@@ -0,0 +1,13 @@
1
+import ApplicationAdapter from './application';
2
+import ENV from 'open-event-frontend/config/environment';
3
+
4
+export default ApplicationAdapter.extend({
5
6
+ urlForQueryRecord(query) {
7
+ if (query && query.code && query.eventIdentifier) {
8
+ return `${ENV.APP.apiHost}/v1/events/${query.eventIdentifier}/discount-codes/${query.code}`;
9
+ } else {
10
+ return this._super(...arguments);
11
+ }
12
13
+});
0 commit comments