5 lines
130 B
TypeScript
5 lines
130 B
TypeScript
|
const baseUrl = 'http://exampleurl'
|
||
|
|
||
|
export const getData = (userId: number): string => {
|
||
|
return baseUrl + '/data/' + userId
|
||
|
}
|