From f3647faa3af3296459c40783dd65f60fe9539321 Mon Sep 17 00:00:00 2001 From: Jason Gessner Date: Sat, 23 Sep 2023 17:23:07 -0500 Subject: [PATCH] Remove namespace and specify /api/v3/public/ in host. --- app/adapters/application.js | 1 - config/environment.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/adapters/application.js b/app/adapters/application.js index a0db082..0e8298c 100644 --- a/app/adapters/application.js +++ b/app/adapters/application.js @@ -4,7 +4,6 @@ import ENV from 'netrunnerdb/config/environment'; export default class ApplicationAdapter extends JSONAPIAdapter { host = ENV.API_URL; - namespace = 'api/v3/public'; // Converts Ember's dashes convention convention to Rails' underscores pathForType(type) { diff --git a/config/environment.js b/config/environment.js index 17f3609..deb38c9 100644 --- a/config/environment.js +++ b/config/environment.js @@ -14,7 +14,7 @@ module.exports = function (environment) { }, }, - API_URL: 'https://api-preview.netrunnerdb.com', + API_URL: 'https://api-preview.netrunnerdb.com/api/v3/public/', googleFonts: ['Merriweather Sans'], APP: { @@ -45,7 +45,7 @@ module.exports = function (environment) { if (environment === 'production') { // here you can enable a production-specific feature - ENV.API_URL = 'https://api-preview.netrunnerdb.com'; + ENV.API_URL = 'https://api-preview.netrunnerdb.com/api/v3/public/'; } return ENV;