Skip to content
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.

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

No ref/phase 3 endpoints #258

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

No ref/phase 3 endpoints #258

wants to merge 4 commits into from

Conversation

avertrees
Copy link
Collaborator

No description provided.

@avertrees avertrees added the WIP Work in progress (don't merge) label Dec 2, 2024
Copy link

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
digital-collections ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 7:00pm

Copy link
Member

@EdwinGuzman EdwinGuzman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the endpoints should be grouped as app/api/schema/.... Makes it easier to differentiate whether it's an endpoint for the app to use or for schema collaboration purposes. It might also make it easier to write the regex in the reverse proxy repo as a catch-all for all these schema endpoints.

import searchSchema from "../../src/data/schemas/searchSchema";

export const GET = async () => {
return NextResponse.json(searchSchema, { status: 200 });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand how status is working in this setup. Does this mean it would live on the response (like we've been talking about) instead of within the headers field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress (don't merge)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants