Skip to content

Commit ed921b7

Browse files
committed
fix: update api spec, include description and add default auth scheme
1 parent 28a0f19 commit ed921b7

File tree

2 files changed

+213
-105
lines changed

2 files changed

+213
-105
lines changed

app/views/email-api.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ block body
77
// Initialize the Scalar API Reference
88
script.
99
window.WEB_URL = "#{ config.WEB_URL }";
10-
window.API_TOKEN = "#{user[config.userFields.apiToken]}";
10+
window.API_TOKEN = "#{user ? user[config.userFields.apiToken] : ""}";
1111
Scalar.createApiReference("#app", {
1212
// The URL of the OpenAPI/Swagger document
1313
url: `${window.WEB_URL}/api-spec.json`,

0 commit comments

Comments
 (0)