Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesPull RequestsActionsSecurityInsightsSettings
✨ AI
More
Blame · Line-by-line history

app.ts

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

app.tsBlame31 lines · 1 contributor
fc1817aClaude1import { Hono } from "hono";
2import { logger } from "hono/logger";
3import { cors } from "hono/cors";
4import gitRoutes from "./routes/git";
5import apiRoutes from "./routes/api";
06d5ffeClaude6import authRoutes from "./routes/auth";
7import settingsRoutes from "./routes/settings";
fc1817aClaude8import webRoutes from "./routes/web";
9
10const app = new Hono();
11
12// Middleware
13app.use("*", logger());
14app.use("/api/*", cors());
15
16// Git Smart HTTP protocol routes (must be before web routes)
17app.route("/", gitRoutes);
18
19// REST API
20app.route("/", apiRoutes);
21
06d5ffeClaude22// Auth routes (register, login, logout)
23app.route("/", authRoutes);
24
25// Settings routes (profile, SSH keys) — requires auth
26app.route("/", settingsRoutes);
27
fc1817aClaude28// Web UI (catch-all, must be last)
29app.route("/", webRoutes);
30
31export default app;