Commit sur main · df0b8f8 · @rmdes
A plug-in declares the indexes a collection needs where it adds the collection, as an array of a key plus any createIndex options, and the core creates them once the database is connected and before serving. The literal posts and media list in index.js goes: the Micropub and media endpoints declare the properties.uid index themselves, and the Microsub endpoint declares its three instead of creating them at init.