Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

696 B
Raw Blame
import { Hono } from "hono";
import { handle } from "hono/vercel";

import { corsMiddleware } from "../../utils";

import * as root from "./root";
import * as s3Config from "./s3Config";
import * as session from "./session";
import * as storage from "./storage";
import * as video from "./video";

const app = new Hono()
	.basePath("/api/desktop")
	.use(corsMiddleware)
	.route("/s3/config", s3Config.app)
	.route("/session", session.app)
	.route("/storage", storage.app)
	.route("/video", video.app)
	.route("/", root.app);

export const GET = handle(app);
export const POST = handle(app);
export const PATCH = handle(app);
export const OPTIONS = handle(app);
export const DELETE = handle(app);