Skip to content

Commit

Permalink
Remove duplicate routes
Browse files Browse the repository at this point in the history
Signed-off-by: Reece Dunham <[email protected]>
  • Loading branch information
RDIL committed Dec 15, 2023
1 parent 91d3753 commit 3b869d8
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions components/2016/legacyProfileRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,15 @@ import { getConfig } from "../configSwizzleManager"

import { Router } from "express"
import { controller } from "../controller"
import { getPlatformEntitlements } from "../platformEntitlements"
import { json as jsonMiddleware } from "body-parser"
import { uuidRegex } from "../utils"
import { menuSystemDatabase } from "../menus/menuSystem"
import { compileRuntimeChallenge } from "../candle/challengeHelpers"
import { LegacyGetProgressionBody } from "../types/gameSchemas"

const legacyProfileRouter = Router()

// /authentication/api/userchannel/

legacyProfileRouter.post(
"/ProfileService/GetPlatformEntitlements",
jsonMiddleware(),
getPlatformEntitlements,
)

legacyProfileRouter.post(
"/AuthenticationService/GetBlobOfflineCacheDatabaseDiff",
(req: RequestWithJwt, res) => {
const configs: string[] = []

menuSystemDatabase.hooks.getDatabaseDiff.call(configs, req.gameVersion)

res.json(configs)
},
)

legacyProfileRouter.post(
"/ChallengesService/GetActiveChallenges",
jsonMiddleware(),
Expand Down

0 comments on commit 3b869d8

Please sign in to comment.