mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-28 16:49:36 +07:00
17 lines
405 B
TypeScript
17 lines
405 B
TypeScript
import { Router } from "express";
|
|
import preview from "./preview";
|
|
import trpc from "./trpc/handler";
|
|
import { thumbnail } from "./thumbnail";
|
|
import sandbox from "./sandbox";
|
|
import { nocache } from "../middlewares/nocache";
|
|
|
|
const api = Router();
|
|
|
|
api.use("/trpc", trpc);
|
|
api.use("/preview", nocache, preview);
|
|
api.use("/sandbox", sandbox);
|
|
|
|
api.get("/thumbnail/:slug", thumbnail);
|
|
|
|
export default api;
|