added slash to end of example base urls

This commit is contained in:
Jake 2018-06-25 18:08:48 -04:00 committed by Martijn Walraven
parent 6ccb79055f
commit 6f99c45e4e

View file

@ -23,7 +23,7 @@ const { RESTDataSource } = require('apollo-datasource-rest');
class MoviesAPI extends RESTDataSource {
constructor() {
super();
this.baseURL = 'https://movies-api.example.com';
this.baseURL = 'https://movies-api.example.com/';
}
async getMovie(id) {
@ -46,7 +46,7 @@ Data sources allow you to intercept fetches to set headers or make other changes
class PersonalizationAPI extends RESTDataSource {
constructor() {
super();
this.baseURL = 'https://personalization-api.example.com';
this.baseURL = 'https://personalization-api.example.com/';
}
willSendRequest(request) {
@ -118,7 +118,7 @@ Our recommendation is to restrict batching to requests that can't be cached. In
class PersonalizationAPI extends RESTDataSource {
constructor() {
super();
this.baseURL = 'https://personalization-api.example.com';
this.baseURL = 'https://personalization-api.example.com/';
}
willSendRequest(request) {