eletrotupi / tcc/ api/src/controllers/main.tsc901c35af9c84b6a29e5185545ced1129f33b8f4
357 B | 13 lines Raw
1
import { Request, Response, NextFunction } from 'express';
2

3
export const MainController = {
4
  // TODO: replace with a HTML response for the main app
5
  index: async (req: Request, res: Response, next: NextFunction) => {
6
    try {
7
      const { message } = req.params;
8
      res.send('../static/index.html');
9
    } catch (err) {
10
      next(err);
11
    }
12
  }
13
};