IndexController.ts 415 B

12345678910111213141516
  1. import Express = require('express');
  2. import {UserManager} from "../manager/UserManager";
  3. import {FormBuilder} from "../modules/FormCrafty/FormBuilder";
  4. import {FormUser} from "../form/FormUser";
  5. export class IndexController {
  6. public static createRoute(r:Express.router) {
  7. r.all("/", IndexController.index);
  8. }
  9. public static index(req, res, next) {
  10. res.render("index", {title: "Coucou"});
  11. }
  12. }