Skip to content

Commit

Permalink
Remove namespace and specify /api/v3/public/ in host.
Browse files Browse the repository at this point in the history
  • Loading branch information
plural committed Sep 23, 2023
1 parent d392366 commit f3647fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/adapters/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f3647fa

Please sign in to comment.