Implement a new route GET /about
.
It should return a string Lorem ipsum dolor sit amet
This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task
index.js
import { server } from './server.js';
const port = 8080;
server.listen(port, () => console.log(`Waiting for connections on port ${port}`));
server.js
import express from 'express';
const server = express();
server.get('/hello', (req, res) => {
res.send('Hello, Coderslang!');
})
export { server };