mirror of
https://github.com/sergeyyarkov/node-docker-example.git
synced 2026-10-11 18:29:34 +03:00
14 lines
326 B
JavaScript
14 lines
326 B
JavaScript
import http from 'node:http';
|
|
import Response from './response.js';
|
|
|
|
/**
|
|
* This middleware just prints text to console
|
|
*
|
|
* @param {http.ClientRequest} req
|
|
* @param {Response} res
|
|
* @param {function} next
|
|
*/
|
|
export const helloMiddleware = (req, res) => {
|
|
console.log('[LOG]: Hello from `helloMiddleware` function');
|
|
};
|