Buckets:
| import { redirect } from "@solidjs/router" | |
| import type { APIEvent } from "@solidjs/start/server" | |
| import { getLastSeenWorkspaceID } from "../workspace/common" | |
| import { localeFromRequest, route } from "~/lib/language" | |
| export async function GET(input: APIEvent) { | |
| const locale = localeFromRequest(input.request) | |
| try { | |
| const workspaceID = await getLastSeenWorkspaceID() | |
| return redirect(route(locale, `/workspace/${workspaceID}`)) | |
| } catch { | |
| return redirect("/auth/authorize") | |
| } | |
| } | |
Xet Storage Details
- Size:
- 496 Bytes
- Xet hash:
- b4078a9d0e2aaa53354760963e735b534174360f83eea93ed65c42abc0bbfbf7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.