mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-29 00:59:37 +07:00
14 lines
283 B
TypeScript
14 lines
283 B
TypeScript
import { Router } from "express";
|
|
import preview from "./preview";
|
|
import trpc from "./trpc/handler";
|
|
import { thumbnail } from "./thumbnail";
|
|
|
|
const api = Router();
|
|
|
|
api.use("/trpc", trpc);
|
|
api.use("/preview", preview);
|
|
|
|
api.get("/thumbnail/:slug", thumbnail);
|
|
|
|
export default api;
|