Refmt
This commit is contained in:
@@ -7,14 +7,14 @@
|
||||
// Import authRoutes directly from "./auth/routes" instead.
|
||||
|
||||
export { hashPassword, verifyPassword } from "./password";
|
||||
export { AuthService, type AuthResult } from "./service";
|
||||
export { type AuthResult, AuthService } from "./service";
|
||||
export { type AuthStore, InMemoryAuthStore } from "./store";
|
||||
export { generateToken, hashToken, SESSION_COOKIE_NAME } from "./token";
|
||||
export {
|
||||
type AuthMethod,
|
||||
Session,
|
||||
type SessionData,
|
||||
type TokenId,
|
||||
type TokenType,
|
||||
Session,
|
||||
tokenLifetimes,
|
||||
} from "./types";
|
||||
|
||||
@@ -2,8 +2,14 @@
|
||||
// PostgreSQL database access with Kysely query builder and simple migrations
|
||||
|
||||
import * as fs from "fs";
|
||||
import {
|
||||
type Generated,
|
||||
Kysely,
|
||||
PostgresDialect,
|
||||
type Selectable,
|
||||
sql,
|
||||
} from "kysely";
|
||||
import * as path from "path";
|
||||
import { Generated, Kysely, PostgresDialect, Selectable, sql } from "kysely";
|
||||
import { Pool } from "pg";
|
||||
import type {
|
||||
AuthStore,
|
||||
|
||||
@@ -51,9 +51,9 @@ const routes: Route[] = [
|
||||
return ret;
|
||||
};
|
||||
|
||||
const rrr = lr(routes)
|
||||
const rrr = lr(routes);
|
||||
|
||||
const template=`
|
||||
const template = `
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
@@ -64,8 +64,8 @@ const routes: Route[] = [
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
`
|
||||
const result = nunjucks.renderString(template,{rrr})
|
||||
`;
|
||||
const result = nunjucks.renderString(template, { rrr });
|
||||
|
||||
const listing = lr(routes).join(", ");
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user