simple-fs-server/routes/index.tsx
2023-01-06 18:17:36 +09:00

25 lines
657 B
XML

import { Head } from "$fresh/runtime.ts";
export default function Home() {
return (
<>
<Head>
<title>Simple file server</title>
</Head>
<div class="p-4 mx-auto max-w-screen-md">
<img
src="/logo.svg"
class="w-32 h-32"
alt="the fresh logo: a sliced lemon dripping with juice"
/>
<p class="my-6">
This is a simple file server. It serves files from the <code>CWD</code>.
</p>
<a href="/dir/">Go To CWD</a> | <a href="/doc/">Doc</a>
<hr></hr>
<a href="/login">Login</a> | <a href="/api/logout">Logout</a>
</div>
</>
);
}