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

12 lines
599 B
JavaScript
Raw Normal View History

2018-06-26 03:42:30 +02:00
const serveByClaim = require('../../controllers/assets/serveByClaim');
const serveByIdentifierAndClaim = require('../../controllers/assets/serveByIdentifierAndClaim');
2018-03-29 02:35:41 +02: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-11 01:11:12 +01:00
'/:claim' : { controller: serveByClaim, action: Actions.onHandleShowPageUri, saga: Sagas.handleShowPageUri },
2018-03-29 02:35:41 +02:00
};