12 lines
205 B
TypeScript
12 lines
205 B
TypeScript
|
import { CDN_URI } from 'config/cdn';
|
||
|
|
||
|
const buildURL = (type: 'cdn', str: string): string => {
|
||
|
switch (type) {
|
||
|
case 'cdn':
|
||
|
return CDN_URI + str;
|
||
|
}
|
||
|
return str;
|
||
|
};
|
||
|
|
||
|
export default buildURL;
|