This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 3 files changed +45
-0
lines changed
3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 3
3
const express = require ( "express" ) ;
4
4
5
5
const app = express ( ) ;
6
+ const miscRouter = require ( "./src/server/misc/router" ) ;
7
+
8
+ // Register misc routes
9
+ app . use ( "/taas-app/misc" , miscRouter ) ;
6
10
7
11
app . use (
8
12
"/taas-app" ,
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Misc router
3
+ *
4
+ * Add any `/misc` routes here.
5
+ */
6
+ const express = require ( "express" ) ;
7
+ const router = express . Router ( ) ;
8
+
9
+ const getInterviewThankYouPageController = require ( "./routes/interview-thank-you-page" ) ;
10
+
11
+ router . get ( "/interview-thank-you-page" , getInterviewThankYouPageController ) ;
12
+
13
+ module . exports = router ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Custom Interview Thank You Page
3
+ */
4
+ const url = require ( "url" ) ;
5
+ /**
6
+ * Render custom HTML thank you page for scheduled or rescheduled interview.
7
+ *
8
+ * @param {import("express").Request } req express request
9
+ * @param {import("express").Response } res express response
10
+ */
11
+ function getInterviewThankYouPageController ( req , res ) {
12
+ const query = req . query ;
13
+ const fullURL = url . format ( {
14
+ protocol : req . protocol ,
15
+ host : req . get ( "host" ) ,
16
+ pathname : req . originalUrl ,
17
+ } ) ;
18
+
19
+ res . set ( "Content-Type" , "text/html" ) ;
20
+ res . send (
21
+ `<h1>Thank you page (under construction)</h1>
22
+ <pre>
23
+ URL: ${ fullURL }
24
+ query: ${ JSON . stringify ( query , null , 2 ) } </pre>`
25
+ ) ;
26
+ }
27
+
28
+ module . exports = getInterviewThankYouPageController ;
You can’t perform that action at this time.
0 commit comments