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

Provide addCollection API method, add to application.collections Map #780

Merged
merged 2 commits into from
Nov 23, 2024

Conversation

paulrobertlloyd
Copy link
Collaborator

  • Adds a new addCollection API method. Fails if adding a collection with a name that already exists.
  • endpoint-micropub plug-in takes responsibility for adding the posts collection
  • endpoint-media plug-in takes responsibility for adding the media collection
  • Indiekit instance tidied up a bit, moving setup out of bootstrap() and adding the properties cache, database and the following methods: connectMongodbClient() and closeMongodbClient()
  • Collections added to Indiekit.collections Map (exposed via Express locals as application.collections).

@paulrobertlloyd paulrobertlloyd added code quality Making things easier to understand core Core indiekit package labels Nov 23, 2024
@paulrobertlloyd paulrobertlloyd merged commit d65b951 into main Nov 23, 2024
1 check failed
@paulrobertlloyd paulrobertlloyd deleted the feat/add-collection branch November 23, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Making things easier to understand core Core indiekit package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant