mirror of
https://git.suyu.dev/suyu/website.git
synced 2025-12-22 05:36:13 +01:00
remove debug logging
This commit is contained in:
parent
52de1dbb15
commit
fcd165e990
1 changed files with 0 additions and 2 deletions
|
|
@ -18,7 +18,6 @@ export async function GET({ request }) {
|
||||||
export async function POST({ request, getClientAddress }) {
|
export async function POST({ request, getClientAddress }) {
|
||||||
// TODO: per-ip room limit
|
// TODO: per-ip room limit
|
||||||
const body: IRoom = await request.json();
|
const body: IRoom = await request.json();
|
||||||
console.log(body, request.headers);
|
|
||||||
/* description may contain "### END DESCRIPTION ###" on its own line. if it does, get all lines after that */
|
/* description may contain "### END DESCRIPTION ###" on its own line. if it does, get all lines after that */
|
||||||
const parsedDescription = body.description?.split("### END DESCRIPTION ###");
|
const parsedDescription = body.description?.split("### END DESCRIPTION ###");
|
||||||
const description = parsedDescription?.slice(1)?.join("### END DESCRIPTION ###") || "";
|
const description = parsedDescription?.slice(1)?.join("### END DESCRIPTION ###") || "";
|
||||||
|
|
@ -42,7 +41,6 @@ export async function POST({ request, getClientAddress }) {
|
||||||
if (!token) return new Response(null, { status: 401 });
|
if (!token) return new Response(null, { status: 401 });
|
||||||
// TODO: jwt utils which type and validate automatically
|
// TODO: jwt utils which type and validate automatically
|
||||||
const user = await useAuth(token);
|
const user = await useAuth(token);
|
||||||
console.log(user);
|
|
||||||
if (!user) return new Response(null, { status: 401 });
|
if (!user) return new Response(null, { status: 401 });
|
||||||
const borkedIp = getClientAddress();
|
const borkedIp = getClientAddress();
|
||||||
const room = RoomManager.createRoom({
|
const room = RoomManager.createRoom({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue