mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
This commit is contained in:
parent
acfe78a1d2
commit
1c4c0c5192
3 changed files with 19 additions and 0 deletions
|
|
@ -122,3 +122,11 @@ func createRiffDeck(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
}
|
||||
|
||||
func getRiffDecks(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
decks := model.GetDecks()
|
||||
ret.Data = decks
|
||||
}
|
||||
|
|
|
|||
|
|
@ -300,6 +300,7 @@ func ServeAPI(ginServer *gin.Engine) {
|
|||
ginServer.Handle("POST", "/api/repo/openRepoSnapshotDoc", model.CheckAuth, openRepoSnapshotDoc)
|
||||
|
||||
ginServer.Handle("POST", "/api/riff/createRiffDeck", model.CheckAuth, createRiffDeck)
|
||||
ginServer.Handle("POST", "/api/riff/getRiffDecks", model.CheckAuth, getRiffDecks)
|
||||
ginServer.Handle("POST", "/api/riff/addRiffCard", model.CheckAuth, addRiffCard)
|
||||
ginServer.Handle("POST", "/api/riff/removeRiffCard", model.CheckAuth, removeRiffCard)
|
||||
ginServer.Handle("POST", "/api/riff/getRiffDueCards", model.CheckAuth, getRiffDueCards)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue