Created a route to fetch recent modifications as a csv to allow creating clients
This commit is contained in:
parent
de60936cd2
commit
1e661031fb
8 changed files with 71 additions and 11 deletions
|
|
@ -16,7 +16,8 @@ postAddTodolistR :: GroupId -> Handler Html
|
|||
postAddTodolistR groupId = do
|
||||
list <- runInputPost $ ireq textField "list"
|
||||
-- TODO: in a newer version, put insertUnique_
|
||||
_ <- dbIfAuth groupId (insertUnique $ Todolist groupId list)
|
||||
currentTime <- liftIO getCurrentTime
|
||||
_ <- dbIfAuth groupId (insertUnique $ Todolist groupId list currentTime)
|
||||
redirect $ TodolistR groupId
|
||||
|
||||
-- TODO: move this to a new handler file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue