Some checks failed
Build Docker Image Front / run (push) Successful in 24s
Build Docker Image Back / run (push) Successful in 21s
Jest test unit / build (push) Failing after 17s
Build Docker Image Front / run (pull_request) Successful in 21s
Build Docker Image Back / run (pull_request) Successful in 21s
22 lines
517 B
TypeScript
22 lines
517 B
TypeScript
import express from "express";
|
|
/**
|
|
* Initialize Express application instance.
|
|
* @returns An initialized Express application object.
|
|
*/
|
|
const app = express();
|
|
|
|
|
|
|
|
/**
|
|
* Handle GET request for homepage route ('/').
|
|
* Send back a simple text response.
|
|
* @param {express.Request} req - HTTP Request object.
|
|
* @param {express.Response} res - HTTP Response object.
|
|
*/
|
|
function getRoot(req: express.Request, res: express.Response) {
|
|
res.send("hello world from dev");
|
|
}
|
|
|
|
app.get("/", getRoot);
|
|
|
|
export default app; |