- [API] Segregated API files, Implemented spells-list, component that calls the API
This commit is contained in:
11
client/api/repositories.js
Normal file
11
client/api/repositories.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import spellsRepository from './spellsRepository'
|
||||
|
||||
// List of possible repositories
|
||||
const repositories = {
|
||||
spells: spellsRepository
|
||||
}
|
||||
|
||||
// Usage : RepositoryFactoryInstance.get('reponame');
|
||||
export const RepositoryFactory = {
|
||||
get: name => repositories[name]
|
||||
}
|
||||
Reference in New Issue
Block a user