text: const express = require('express');
  const router = express();
  
  const printReceipt = require('./receipt');
  
  router.get('/', (req, res) => {
    res.send('online');
  });
  
  router.post('/print', (req, res) => {
    try {
      printReceipt(req, res);
    } catch (error) {
      send('error');
      console.log(`error code:${error.code}, error message:${error.message}`);
    }
  });
  
  module.exports = router;
  