Add in mark as reaad button to list view, use ajax to preform the action without page refresh.
This commit is contained in:
@@ -72,6 +72,7 @@ func RegisterAccountRoutes(app *bootstrap.App) {
|
||||
messages.GET("/archive", msgH.ArchivedList) // view archived messages
|
||||
messages.POST("/archive", msgH.ArchivePost) // archive a message
|
||||
messages.POST("/restore", msgH.RestoreArchived)
|
||||
messages.POST("/mark-read", msgH.MarkReadPost)
|
||||
}
|
||||
|
||||
// Notifications (auth-required)
|
||||
|
||||
Reference in New Issue
Block a user