Skip to content

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

Merged
paulrobertlloyd merged 2 commits intomainfrom
feat/add-collection
Nov 23, 2024
Merged

Provide addCollection API method, add to application.collections Map#780
paulrobertlloyd merged 2 commits intomainfrom
feat/add-collection

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
@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