diff --git a/apps/truisms/index.ts b/apps/truisms/index.ts index 0d5de4d..87794a5 100644 --- a/apps/truisms/index.ts +++ b/apps/truisms/index.ts @@ -4,8 +4,13 @@ const app = new Hono() const html = (strings: TemplateStringsArray, ...values: any[]) => strings.reduce((result, str, i) => result + str + (values[i] || ''), '') +const truism = (): string => { + const text = TRUISMS[Math.floor(Math.random() * TRUISMS.length)]! + console.log(text) + return text +} + app.get("/", (c) => { - const truism = TRUISMS[Math.floor(Math.random() * TRUISMS.length)] return c.html(html` @@ -33,13 +38,13 @@ app.get("/", (c) => {
-