Separate happy path utility functions for requests

This commit is contained in:
2026-01-17 15:43:52 -06:00
parent 03cc4cf4eb
commit 7ed05695b9
6 changed files with 64 additions and 37 deletions

View File

@@ -2,7 +2,7 @@ import { SESSION_COOKIE_NAME } from "../auth/token";
import { tokenLifetimes } from "../auth/types";
import { services } from "../services";
import type { Call, Result, Route } from "../types";
import { html, redirect, render } from "../util";
import { html, redirect, render } from "../request/util";
const loginHandler = async (call: Call): Promise<Result> => {
if (call.method === "GET") {