mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	refactor: topic mark read/unread routes
This commit is contained in:
		| @@ -189,3 +189,21 @@ Topics.deleteEvent = async (req, res) => { | ||||
|  | ||||
| 	helpers.formatApiResponse(200, res); | ||||
| }; | ||||
|  | ||||
| Topics.markRead = async (req, res) => { | ||||
| 	await api.topics.markRead(req, { ...req.params }); | ||||
|  | ||||
| 	helpers.formatApiResponse(200, res); | ||||
| }; | ||||
|  | ||||
| Topics.markUnread = async (req, res) => { | ||||
| 	await api.topics.markUnread(req, { ...req.params }); | ||||
|  | ||||
| 	helpers.formatApiResponse(200, res); | ||||
| }; | ||||
|  | ||||
| Topics.bump = async (req, res) => { | ||||
| 	await api.topics.bump(req, { ...req.params }); | ||||
|  | ||||
| 	helpers.formatApiResponse(200, res); | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user