spee.ch/server/routes/assets/index.js

12 lines
599 B
JavaScript
Raw Normal View History

2018-06-25 18:42:30 -07:00
const serveByClaim = require('../../controllers/assets/serveByClaim');
const serveByIdentifierAndClaim = require('../../controllers/assets/serveByIdentifierAndClaim');
2018-03-28 17:35:41 -07:00
// TODO: Adjust build & sources to use import/export everywhere
const Actions = require('@actions').default;
const Sagas = require('@sagas').default;
export default {
'/:identifier/:claim': { controller: serveByIdentifierAndClaim, action: Actions.onHandleShowPageUri, saga: Sagas.handleShowPageUri },
2018-11-10 19:11:12 -05:00
'/:claim' : { controller: serveByClaim, action: Actions.onHandleShowPageUri, saga: Sagas.handleShowPageUri },
2018-03-28 17:35:41 -07:00
};