Fix formatting
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import { DateTime } from "ts-luxon";
|
||||
import { services } from "../services";
|
||||
import type { Call, Result, Route } from "../types";
|
||||
import { html, render } from "../util";
|
||||
import { loginRoute } from "./login";
|
||||
|
||||
import { services } from '../services';
|
||||
|
||||
|
||||
const routes: Record<string, Route> = {
|
||||
hello: {
|
||||
path: "/hello",
|
||||
@@ -18,17 +16,17 @@ const routes: Record<string, Route> = {
|
||||
},
|
||||
},
|
||||
home: {
|
||||
path:'/',
|
||||
methods:['GET'],
|
||||
handler:async(_call:Call): Promise<Result> => {
|
||||
const auth = services.auth
|
||||
const me = services.session.getUser()
|
||||
path: "/",
|
||||
methods: ["GET"],
|
||||
handler: async (_call: Call): Promise<Result> => {
|
||||
const auth = services.auth;
|
||||
const me = services.session.getUser();
|
||||
|
||||
const email = me.toString()
|
||||
const c = await render('basic/home',{email})
|
||||
const email = me.toString();
|
||||
const c = await render("basic/home", { email });
|
||||
|
||||
return html(c)
|
||||
}
|
||||
return html(c);
|
||||
},
|
||||
},
|
||||
login: loginRoute,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user