Skip to content

Commit

Permalink
fix(endpoint-micropub): respect user configured endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 3, 2024
1 parent a38cb8a commit f8d0cc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/endpoint-micropub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export default class MicropubEndpoint {
Indiekit.addCollection("posts");
Indiekit.addEndpoint(this);

Indiekit.config.application.micropubEndpoint = this.mountPath;
// Only mount if micropub endpoint not already configured
if (!Indiekit.config.application.micropubEndpoint) {
Indiekit.config.application.micropubEndpoint = this.mountPath;
}
}
}

0 comments on commit f8d0cc8

Please sign in to comment.