File sharing

This commit is contained in:
2026-10-29 20:44:26 -03:00
parent b65d8efad8
commit de1ad70068
18 changed files with 582 additions and 59 deletions
+13
View File
@@ -0,0 +1,13 @@
import type { RouteConfig } from "fresh";
import { define } from "@/utils.ts";
import SharedDownload from "@/islands/SharedDownload.tsx";
// Share links look like /download/<id>/#<secret>, the trailing slash is optional
export const config: RouteConfig = {
routeOverride: "/download/:id{/}?",
};
export default define.page(function ({ params }) {
return <SharedDownload share_id={params.id} />;
});