feat: collect JSON and XML feeds

This commit is contained in:
2026-07-23 20:47:54 +08:00
parent 4b38a42607
commit 5da343cc71
8 changed files with 627 additions and 42 deletions

View File

@@ -272,7 +272,7 @@ func (h *Handler) queueSync(c *gin.Context) {
if !ok {
return
}
crons, err := h.service.QueueSync(userID)
crons, err := h.service.SyncSources(c.Request.Context(), userID)
if err != nil {
writeError(c, err)
return
@@ -281,7 +281,7 @@ func (h *Handler) queueSync(c *gin.Context) {
for _, cron := range crons {
result = append(result, cronDTO(cron))
}
c.JSON(http.StatusAccepted, result)
c.JSON(http.StatusOK, result)
}
func currentUser(c *gin.Context) (uint, bool) {