Implemented loading of short URLs

This commit is contained in:
Alejandro Celaya
2018-06-15 21:49:25 +02:00
parent e4356720d7
commit c0203f1336
16 changed files with 191 additions and 33 deletions

View File

@@ -2,10 +2,10 @@ import { combineReducers } from 'redux';
import serversReducer from '../servers/reducers/server';
import selectedServerReducer from '../servers/reducers/selectedServer';
import shortUrlsListReducer from '../short-urls/reducers/shortUrlsList';
const rootReducer = combineReducers({
export default combineReducers({
servers: serversReducer,
selectedServer: selectedServerReducer,
shortUrlsList: shortUrlsListReducer,
});
export default rootReducer;

8
src/reducers/types.js Normal file
View File

@@ -0,0 +1,8 @@
// Servers
export const LOAD_SERVER = 'shlink/LOAD_SERVER';
export const FETCH_SERVERS = 'shlink/FETCH_SERVERS';
export const CREATE_SERVER = 'shlink/CREATE_SERVER';
// Short URLs
export const LIST_SHORT_URLS = 'shlink/LIST_SHORT_URLS';