forked from loafle/openapi-generator-original
fix typescript-fetch base path by removing ending slash
This commit is contained in:
parent
9301db60e6
commit
d1c1c9d08f
@ -10,7 +10,7 @@ import * as assign from "core-js/library/fn/object/assign";
|
|||||||
interface Dictionary<T> { [index: string]: T; }
|
interface Dictionary<T> { [index: string]: T; }
|
||||||
export interface FetchAPI { (url: string, init?: any): Promise<any>; }
|
export interface FetchAPI { (url: string, init?: any): Promise<any>; }
|
||||||
|
|
||||||
const BASE_PATH = "{{basePath}}";
|
const BASE_PATH = "{{{basePath}}}".replace(/\/+$/, '');
|
||||||
|
|
||||||
export interface FetchArgs {
|
export interface FetchArgs {
|
||||||
url: string;
|
url: string;
|
||||||
|
@ -31,7 +31,7 @@ import * as assign from "core-js/library/fn/object/assign";
|
|||||||
interface Dictionary<T> { [index: string]: T; }
|
interface Dictionary<T> { [index: string]: T; }
|
||||||
export interface FetchAPI { (url: string, init?: any): Promise<any>; }
|
export interface FetchAPI { (url: string, init?: any): Promise<any>; }
|
||||||
|
|
||||||
const BASE_PATH = "http://petstore.swagger.io/v2";
|
const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, '');
|
||||||
|
|
||||||
export interface FetchArgs {
|
export interface FetchArgs {
|
||||||
url: string;
|
url: string;
|
||||||
|
@ -30,7 +30,7 @@ import * as isomorphicFetch from "isomorphic-fetch";
|
|||||||
interface Dictionary<T> { [index: string]: T; }
|
interface Dictionary<T> { [index: string]: T; }
|
||||||
export interface FetchAPI { (url: string, init?: any): Promise<any>; }
|
export interface FetchAPI { (url: string, init?: any): Promise<any>; }
|
||||||
|
|
||||||
const BASE_PATH = "http://petstore.swagger.io/v2";
|
const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, '');
|
||||||
|
|
||||||
export interface FetchArgs {
|
export interface FetchArgs {
|
||||||
url: string;
|
url: string;
|
||||||
|
@ -31,7 +31,7 @@ import * as assign from "core-js/library/fn/object/assign";
|
|||||||
interface Dictionary<T> { [index: string]: T; }
|
interface Dictionary<T> { [index: string]: T; }
|
||||||
export interface FetchAPI { (url: string, init?: any): Promise<any>; }
|
export interface FetchAPI { (url: string, init?: any): Promise<any>; }
|
||||||
|
|
||||||
const BASE_PATH = "http://petstore.swagger.io/v2";
|
const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, '');
|
||||||
|
|
||||||
export interface FetchArgs {
|
export interface FetchArgs {
|
||||||
url: string;
|
url: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user