spee.ch/server/routes/assets/index.js
2018-04-26 23:42:22 -07:00

7 lines
331 B
JavaScript

const serveAssetByClaim = require('../../controllers/assets/serveAssetByClaim');
const serveAssetByIdentifierAndClaim = require('../../controllers/assets/serveAssetByIdentifierAndClaim');
module.exports = (app, db) => {
app.get('/:identifier/:claim', serveAssetByIdentifierAndClaim);
app.get('/:claim', serveAssetByClaim);
};