@@ -85,14 +85,25 @@ eg001EmbeddedSigning.getController = (req, res) => {
8585 // since they have not yet entered any information into the form.
8686 const tokenOK = req . dsAuth . checkToken ( ) ;
8787 if ( tokenOK ) {
88- res . render ( 'pages/examples/eg001EmbeddedSigning' , {
89- eg : eg , csrfToken : req . csrfToken ( ) ,
90- title : "Use embedded signing" ,
91- sourceFile : path . basename ( __filename ) ,
92- sourceUrl : 'https://github.com/docusign/code-examples-node/blob/master/eg001EmbeddedSigning.js' ,
93- documentation : dsConfig . documentation + eg ,
94- showDoc : dsConfig . documentation
95- } ) ;
88+ if ( res . locals . quickACG ) {
89+ res . render ( 'pages/examples/quickEmbeddedSigning' , {
90+ eg : eg , csrfToken : req . csrfToken ( ) ,
91+ title : "Use embedded signing" ,
92+ sourceFile : path . basename ( __filename ) ,
93+ sourceUrl : 'https://github.com/docusign/code-examples-node/blob/master/eg001EmbeddedSigning.js' ,
94+ documentation : dsConfig . documentation + eg ,
95+ showDoc : dsConfig . documentation
96+ } ) ;
97+ } else {
98+ res . render ( 'pages/examples/eg001EmbeddedSigning' , {
99+ eg : eg , csrfToken : req . csrfToken ( ) ,
100+ title : "Use embedded signing" ,
101+ sourceFile : path . basename ( __filename ) ,
102+ sourceUrl : 'https://github.com/docusign/code-examples-node/blob/master/eg001EmbeddedSigning.js' ,
103+ documentation : dsConfig . documentation + eg ,
104+ showDoc : dsConfig . documentation
105+ } ) ;
106+ }
96107 } else {
97108 // Save the current operation so it will be resumed after authentication
98109 req . dsAuth . setEg ( req , eg ) ;
0 commit comments