-
Notifications
You must be signed in to change notification settings - Fork 0
/
mails.js
65 lines (52 loc) · 2.09 KB
/
mails.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
const path = require('path')
const express = require('express')
const router = express.Router()
router.get('/welcome/subject', function (req, res) {
res.set('Content-Type', 'text/plain')
res.send('Welcome to VolgaCTF 2024 Qualifier!')
})
router.get('/welcome/plain', function (req, res) {
res.set('Content-Type', 'text/plain')
res.sendFile(path.join(__dirname, 'templates', 'welcome.plain.mustache'))
})
router.get('/welcome/html', function (req, res) {
res.set('Content-Type', 'text/html')
res.sendFile(path.join(__dirname, 'templates', 'welcome.html.mustache'))
})
router.get('/restore/subject', function (req, res) {
res.set('Content-Type', 'text/plain')
res.send('Reset your password!')
})
router.get('/restore/plain', function (req, res) {
res.set('Content-Type', 'text/plain')
res.sendFile(path.join(__dirname, 'templates', 'restore.plain.mustache'))
})
router.get('/restore/html', function (req, res) {
res.set('Content-Type', 'text/html')
res.sendFile(path.join(__dirname, 'templates', 'restore.html.mustache'))
})
router.get('/invite_supervisor/subject', function (req, res) {
res.set('Content-Type', 'text/plain')
res.send('Welcome onboard!')
})
router.get('/invite_supervisor/plain', function (req, res) {
res.set('Content-Type', 'text/plain')
res.sendFile(path.join(__dirname, 'templates', 'invite_supervisor.plain.mustache'))
})
router.get('/invite_supervisor/html', function (req, res) {
res.set('Content-Type', 'text/html')
res.sendFile(path.join(__dirname, 'templates', 'invite_supervisor.html.mustache'))
})
router.get('/new_task_review/subject', function (req, res) {
res.set('Content-Type', 'text/plain')
res.send('New task review from "{{ team_name }}": "{{ task_title }}"')
})
router.get('/new_task_review/plain', function (req, res) {
res.set('Content-Type', 'text/plain')
res.sendFile(path.join(__dirname, 'templates', 'new_task_review.plain.mustache'))
})
router.get('/new_task_review/html', function (req, res) {
res.set('Content-Type', 'text/html')
res.sendFile(path.join(__dirname, 'templates', 'new_task_review.html.mustache'))
})
module.exports = router