Skip to content

Commit 3b2d7f7

Browse files
committed
add default export
1 parent 77d0d8a commit 3b2d7f7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/pages/coc/config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,12 @@ export const API_CONFIG = {
1212
// Helper function to format endpoints with clan tag
1313
export const getEndpoint = (endpoint) => {
1414
return `${API_CONFIG.BASE_URL}${endpoint.replace('{tag}', API_CONFIG.CLAN_TAG)}`;
15-
};
15+
};
16+
17+
// Default export for the configuration
18+
const config = {
19+
API_CONFIG,
20+
getEndpoint
21+
};
22+
23+
export default config;

0 commit comments

Comments
 (0)