88 *
99 */
1010
11- /**
11+ /**
1212 * express module
1313 * @const
1414 */
@@ -22,23 +22,26 @@ const config = require('../config/config');
2222const router = express . Router ( ) ;
2323
2424/**
25- * Route serving termsofservice
26- * @name get/termsofservice
27- * @function
28- * @memberof modules:routes/legal
29- * @inner
30- */
25+ * Route serving termsofservice
26+ * @name get/termsofservice
27+ * @function
28+ * @memberof modules:routes/legal
29+ * @inner
30+ */
3131router . get ( [ '/tos' , '/tac' , '/termsofservice' , '/terms-of-service' ] , ( req , res ) => {
32- res . render ( 'legal/tos.html' , { production : config . PRODUCTION , client_versobe : config . CLIENT_VERBOSE } ) ;
32+ res . render ( 'legal/tos.html' , {
33+ production : config . PRODUCTION ,
34+ client_versobe : config . CLIENT_VERBOSE
35+ } ) ;
3336} ) ;
3437
3538/**
36- * Route serving termsofservice PDF
37- * @name get/termsofservice
38- * @function
39- * @memberof modules:routes/legal
40- * @inner
41- */
39+ * Route serving termsofservice PDF
40+ * @name get/termsofservice
41+ * @function
42+ * @memberof modules:routes/legal
43+ * @inner
44+ */
4245router . get ( [ '/tos-pdf' , '/tac-pdf' , '/termsofservice-pdf' , '/terms-of-service-pdf' ] , ( req , res ) => {
4346 res . download ( "./views/legal/tos-pdf.pdf" )
4447} ) ;
@@ -70,7 +73,10 @@ router.get([
7073 * @inner
7174 */
7275router . get ( [ '/privacy' , '/privacy-policy' , '/privacypolicy' ] , ( req , res ) => {
73- res . render ( 'legal/privacy.html' , { production : config . PRODUCTION , client_versobe : config . CLIENT_VERBOSE } ) ;
76+ res . render ( 'legal/privacy.html' , {
77+ production : config . PRODUCTION ,
78+ client_versobe : config . CLIENT_VERBOSE
79+ } ) ;
7480} ) ;
7581
7682/**
@@ -92,7 +98,10 @@ router.get(['/privacy-pdf', '/privacy-policy-pdf', '/privacypolicy-pdf'], (req,
9298 * @inner
9399 */
94100router . get ( [ '/privacy/archive/:date' , '/privacy-policy/archive/:date' , '/privacypolicy/archive/:date' ] , ( req , res ) => {
95- res . render ( `legal/archive/privacy-${ req . params . date } .html` , { production : config . PRODUCTION , client_versobe : config . CLIENT_VERBOSE } ) ;
101+ res . render ( `legal/archive/privacy-${ req . params . date } .html` , {
102+ production : config . PRODUCTION ,
103+ client_versobe : config . CLIENT_VERBOSE
104+ } ) ;
96105} ) ;
97106
98107/**
@@ -102,8 +111,11 @@ router.get(['/privacy/archive/:date', '/privacy-policy/archive/:date', '/privacy
102111 * @memberof modules:routes/legal
103112 * @inner
104113 */
105- router . get ( '/license' , ( req , res ) => {
106- res . render ( 'legal/licence.html' , { production : config . PRODUCTION , client_versobe : config . CLIENT_VERBOSE } ) ;
114+ router . get ( '/licence' , ( req , res ) => {
115+ res . render ( 'legal/licence.html' , {
116+ production : config . PRODUCTION ,
117+ client_versobe : config . CLIENT_VERBOSE
118+ } ) ;
107119} ) ;
108120
109121module . exports = router ;
0 commit comments