project.ts 886 Bytes
Newer Older
1
import {controller} from '../controller/controller'
Rosanny Sihombing's avatar
Rosanny Sihombing committed
2

Rosanny Sihombing's avatar
Rosanny Sihombing committed
3
module.exports = function (app: any) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
4
  // ======== APP ROUTES - PROJECT ====================
Rosanny Sihombing's avatar
Rosanny Sihombing committed
5

Rosanny Sihombing's avatar
Rosanny Sihombing committed
6
7
  app.get('/', function (req: any, res: any) {
    controller.showHome(res)
Rosanny Sihombing's avatar
Rosanny Sihombing committed
8
9
  })

Rosanny Sihombing's avatar
Rosanny Sihombing committed
10
11
12
13
  app.get('/mailinglists', function (req: any, res: any) {
    controller.showMailingList(res)
      .catch(err => console.error(err))
  })
Rosanny Sihombing's avatar
Rosanny Sihombing committed
14

Rosanny Sihombing's avatar
Rosanny Sihombing committed
15
16
17
  app.get('/projectoverview', function (req: any, res: any, next: any) {
    controller.showProjOverview(req, res, next)
      .catch(err => console.error(err))
Rosanny Sihombing's avatar
Rosanny Sihombing committed
18
19
20
  })

  // Projektdaten
Rosanny Sihombing's avatar
Rosanny Sihombing committed
21
22
23
  app.get('/projektdaten', function (req: any, res: any) {
    controller.showProjData(req, res)
      .catch(err => console.error(err))
Rosanny Sihombing's avatar
Rosanny Sihombing committed
24
25
26
  })

  // Projektinformationen
Rosanny Sihombing's avatar
Rosanny Sihombing committed
27
28
29
  app.get('/projektinformationen', function (req: any, res: any) {
    controller.showProjInformations(req, res)
      .catch(err => console.error(err))
Rosanny Sihombing's avatar
Rosanny Sihombing committed
30
  })
Rosanny Sihombing's avatar
Rosanny Sihombing committed
31
}