1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-01-31 11:35:18 +00:00
discover/back-end/routes/api-router.js
Jakub Sokołowski f21768eee7
drop https redirect, CloudFront does it for us
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-05 17:21:20 +01:00

15 lines
350 B
JavaScript

const express = require('express');
const DAppsRoute = require('./dapps-routes');
class APIRouter {
static route(app) {
app.use('/metadata', DAppsRoute.build(express));
/* for ElasticBeanstalk Load Balancer healthcheck */
app.use('/healthcheck', async (req, res) => res.send('OK'))
}
}
module.exports = APIRouter;