Revert last canary flag PR and use a better method (#5535)
* Revert "Implement Labrinth Canary API flag (#5531)"
This reverts commit 3b21944a75.
* Use Labrinth-Canary header instead of cookie for API canary
* prepr
* fix rebase
This commit is contained in:
@@ -25,11 +25,7 @@ export default defineNuxtRouteMiddleware(async (to) => {
|
||||
|
||||
const queryClient = useAppQueryClient()
|
||||
const authToken = useCookie('auth-token')
|
||||
const flags = useFeatureFlags()
|
||||
const client = useServerModrinthClient({
|
||||
authToken: authToken.value || undefined,
|
||||
canaryCookie: flags.value.labrinthApiCanary,
|
||||
})
|
||||
const client = useServerModrinthClient({ authToken: authToken.value || undefined })
|
||||
const tags = useGeneratedState()
|
||||
const projectId = to.params.id as string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user