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

feat: add api/templates.json endpoint #473

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

nemanjafleek
Copy link

@nemanjafleek nemanjafleek commented Jan 28, 2025

Why?

Status: Re-opened (7th February).

https://discord.com/channels/1045027913260617789/1045488357846814771/1337102123875434546

Expose templates.json via api/templates.json public endpoint so the Dashboard can consume it.

How?

  • Add static Astro endpoint.

Tickets?

Contribution checklist?

  • The commit messages are detailed
  • The build command runs locally
  • Assets or static content are linked and stored in the project
  • Document filename is named after the slug
  • You've reviewed spelling using a grammar checker
  • For documentation, guides or references, you've tested the commands and steps
  • You've done enough research before writing

Security checklist?

  • Sensitive data has been identified and is being protected properly
  • Injection has been prevented (parameterized queries, no eval or system calls)
  • The Components are escaping output (to prevent XSS)

References?

Optionally, provide references such as links

Preview?

image

Copy link

changeset-bot bot commented Jan 28, 2025

⚠️ No Changeset found

Latest commit: cbe4e7f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@nemanjafleek
Copy link
Author

Closed. All templates will be stored in the database and managed via graphql. templates.json and assets will be removed from the website and templates will be fetched via graphql.

@nemanjafleek
Copy link
Author

@nemanjafleek nemanjafleek reopened this Feb 7, 2025
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.

1 participant