Skip to content

Commit

Permalink
added README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkirathe committed Sep 4, 2024
1 parent e76532b commit ae69692
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netlify/functions/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ const api = express();
const router = Router();

api.use(express.json());
/*api.use(morgan('combined', {
api.use(morgan('combined', {
stream: {
write: (message) => {
// io.emit('log', message.trim());
}
}
})); // Log all requests*/
api.use(morgan('combined')); // Log all requests
})); // Log all requests
// api.use(morgan('combined')); // Log all requests
api.use(cors()); // Enable CORS for all routes

const users = [
Expand Down

0 comments on commit ae69692

Please sign in to comment.