Skip to content

feat: Client endpoint for reporting backend API to other instances#1308

Closed
Pecacheu wants to merge 3 commits into
mainfrom
feat/apiroute
Closed

feat: Client endpoint for reporting backend API to other instances#1308
Pecacheu wants to merge 3 commits into
mainfrom
feat/apiroute

Conversation

@Pecacheu

@Pecacheu Pecacheu commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Fixes #1293

Required for:

Adds a /.stoat-config endpoint to the client Vite server. Currently this has the API and Gifbox endpoint (other endpoints can already be fetched via backend API, as is done in multiuser PR.)

Response example:

{
    "api": "https://api.stoat.chat",
    "gifbox": "https://api.gifbox.me"
}

How was this PR tested?

Ran client & tested endpoint.

Checklist:

  • I have carefully read the contributing guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR
  • I have confirmed that any new dependencies are strictly necessary
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code

Please declare, if any, LLM usage involved in creating this PR

LLMs and their "world models" can't keep up with me, I'm fast as f**k boiiiii
Athletic dodging

Pecacheu added 2 commits June 25, 2026 22:17
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
@Pecacheu Pecacheu requested review from a team as code owners June 26, 2026 02:26
- Add CORS header

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat: api route for backend url

1 participant