@rmdes/indiekit-endpoint-microsub 1.0.0-beta.2 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,6 +25,12 @@ import { get as getTimeline, action as timelineAction } from "./timeline.js";
|
|
|
25
25
|
export async function get(request, response, next) {
|
|
26
26
|
try {
|
|
27
27
|
const { action } = request.query;
|
|
28
|
+
|
|
29
|
+
// If no action provided, redirect to reader UI
|
|
30
|
+
if (!action) {
|
|
31
|
+
return response.redirect(request.baseUrl + "/reader");
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
validateAction(action);
|
|
29
35
|
|
|
30
36
|
switch (action) {
|
package/package.json
CHANGED