fix: register dashboard and saved-filters API routes
This commit is contained in:
@@ -31,6 +31,8 @@ import { steamReviewRoutes } from "@/lib/api/steam-reviews"
|
|||||||
import { communitySuggestionRoutes } from "@/lib/api/community-suggestions"
|
import { communitySuggestionRoutes } from "@/lib/api/community-suggestions"
|
||||||
import { gamesListingRoutes } from "@/lib/api/games-listing"
|
import { gamesListingRoutes } from "@/lib/api/games-listing"
|
||||||
import { steamgridProxyRoutes } from "@/lib/api/steamgrid-proxy"
|
import { steamgridProxyRoutes } from "@/lib/api/steamgrid-proxy"
|
||||||
|
import { dashboardRoutes } from "@/lib/api/dashboard"
|
||||||
|
import { savedFilterRoutes } from "@/lib/api/saved-filters"
|
||||||
|
|
||||||
const betterAuth = new Elysia({ name: "better-auth" })
|
const betterAuth = new Elysia({ name: "better-auth" })
|
||||||
.mount(auth.handler)
|
.mount(auth.handler)
|
||||||
@@ -110,6 +112,10 @@ export const app = new Elysia({ prefix: "/api" })
|
|||||||
.use(steamReviewRoutes)
|
.use(steamReviewRoutes)
|
||||||
// Community suggestions
|
// Community suggestions
|
||||||
.use(communitySuggestionRoutes)
|
.use(communitySuggestionRoutes)
|
||||||
|
// Saved filters
|
||||||
|
.use(savedFilterRoutes)
|
||||||
|
// Dashboard
|
||||||
|
.use(dashboardRoutes)
|
||||||
// Root
|
// Root
|
||||||
.get("/", () => ({
|
.get("/", () => ({
|
||||||
name: "DeckyVault API",
|
name: "DeckyVault API",
|
||||||
|
|||||||
Reference in New Issue
Block a user