GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add explode, merge, and nav routes to the API by stakats · Pull Request #985 · tropy/tropy

Add explode, merge, and nav routes to the API #985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
stakats wants to merge 3 commits into main
base: main
Loading
Loading
from api-explode-merge

Uh oh!

There was an error while loading. Please reload this page.

Open

Add explode, merge, and nav routes to the API #985

Changes from 1 commit
Commits
Show all changes
3 commits
Select commit Hold shift + click to select a range
1ce49fd
Add explode and merge routes to the API
stakats Aug 24, 2026
d5fdb8b
Expose the current nav state in the API
stakats Aug 24, 2026
2750062
Raise the form parser's array limit
stakats Aug 24, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Raise the form parser's array limit
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@stakats
stakats committed Aug 24, 2026
commit 2750062eb8bea8f5ca03780b35e565bafd7ec15f

There are no files selected for viewing

7 changes: 6 additions & 1 deletion 7 src/common/api.js
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import Router from '@koa/router'
import bodyParser from 'koa-bodyparser'
import act from '../actions/api'

// Beyond qs's arrayLimit, repeated parameters are parsed into an object
// keyed by index instead of an array, which quietly breaks every route
// taking a list: an item's photos, the items to merge, an item's tags.
const ARRAY_LIMIT = 1000

const show = (type) =>
async (ctx) => {
let { params, rsvp } = ctx
Expand Down Expand Up @@ -566,7 +571,7 @@ export function create ({

app
.use(logging)
.use(bodyParser())
.use(bodyParser({ queryString: { arrayLimit: ARRAY_LIMIT } }))
.use(api.routes())
.use(api.allowedMethods())

Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.