Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

517 B
Raw Blame
import { Hono } from "hono";
import { handle } from "hono/vercel";
import { developerRateLimiter, developerSdkCors } from "../../../utils";

import * as usage from "./usage";
import * as videos from "./videos";

const app = new Hono()
	.basePath("/api/developer/v1")
	.use(developerSdkCors)
	.use(developerRateLimiter)
	.route("/videos", videos.app)
	.route("/usage", usage.app);

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