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

8 lines
331 B
JavaScript
Raw Normal View History

const serveAssetByClaim = require('../../controllers/assets/serveAssetByClaim');
const serveAssetByIdentifierAndClaim = require('../../controllers/assets/serveAssetByIdentifierAndClaim');
2018-03-29 02:35:41 +02:00
2018-03-29 20:24:52 +02:00
module.exports = (app, db) => {
app.get('/:identifier/:claim', serveAssetByIdentifierAndClaim);
app.get('/:claim', serveAssetByClaim);
2018-03-29 02:35:41 +02:00
};