Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/routes/apnews/mobile-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const route: Route = {
};

async function handler(ctx) {
const path = ctx.req.param('path') ? `/${ctx.req.param('path')}` : '/hub/ap-top-news';
const path = ctx.req.param('path') ? `/${ctx.req.param('path')}` : '/';
Comment thread
dzx-dzx marked this conversation as resolved.
const apiRootUrl = 'https://apnews.com/graphql/delivery/ap/v1';
const res = await ofetch(apiRootUrl, {
query: {
Expand Down