mirror of
https://github.com/dap-ps/discover.git
synced 2025-01-31 11:35:18 +00:00
15 lines
350 B
JavaScript
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;
|