yarn install
yarn dev
yarn test
TBD
- Used to test if a route is alive
router.get('/ping', (req, res) => {
res.send('pong');
});
- For now we want to demonstrate a test route
router.get('/', (req, res) => {
res.send('Hello World!');
});
- TBD on how we would like to get build info
router.get('/build-info', (req, res) => {
const sha = childProcess
.execSync('git rev-parse --short HEAD')
.toString()
.trim();
res.json({
version,
sha,
});
});