import { Application, Router } from "https://deno.land/x/oak/mod.ts";const router = new Router();router .get("/", (context) => { context.response.body = "Hello world!"; })const app = new Application();app.use(router.routes());app.use(router.allowedMethods());await app.listen({ port: 8000 }
import { Application } from "https://deno.land/x/oak/mod.ts";const app = new Application();app.use((ctx) => { ctx.response.body = "Hello World!";});await app.listen({ port: 8000 });
<form action="/" method="post" id="media_form"> <h1>Media Content</h1> <input type="file" name="file" id="file"> <textarea type="text" name="text" id="text" placeholder="Text content."></textarea> <br> <input type="submit" value="Publish."> </form>