Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 1x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x | import type { FastifyInstance } from "fastify";
import type { AppConfig } from "../config.js";
import type { IdTokenVerifier } from "../lib/firebase-auth.js";
import { accountRoutes } from "./account.js";
import { adminRoutes } from "./admin.js";
import { bikesRoutes } from "./bikes.js";
import { dictionariesRoutes } from "./dictionaries.js";
import { gamesRoutes } from "./games.js";
import { geoRoutes } from "./geo.js";
import { healthRoutes } from "./health.js";
import { profileRoutes } from "./profile.js";
import { statsRoutes } from "./stats.js";
import { tracksRoutes } from "./tracks.js";
export async function registerRoutes(
app: FastifyInstance,
config: AppConfig,
verifyIdToken: IdTokenVerifier,
) {
await app.register(healthRoutes, { prefix: "/v1/gateway" });
await app.register(profileRoutes, { config, verifyIdToken, prefix: "/v1/catalog" });
await app.register(bikesRoutes, { config, verifyIdToken, prefix: "/v1/catalog" });
await app.register(accountRoutes, { config, verifyIdToken, prefix: "/v1/catalog" });
await app.register(adminRoutes, { config, verifyIdToken, prefix: "/v1/catalog" });
await app.register(dictionariesRoutes, { config, verifyIdToken, prefix: "/v1/catalog" });
await app.register(statsRoutes, { config, prefix: "/v1/catalog" });
await app.register(tracksRoutes, { config, verifyIdToken, prefix: "/v1/catalog" });
await app.register(geoRoutes, { config, verifyIdToken, prefix: "/v1/geo" });
await app.register(gamesRoutes, { config, verifyIdToken, prefix: "/v1/games" });
}
|