From 14385c5e0ddc2628bd86dd92272c7164b84d568c Mon Sep 17 00:00:00 2001 From: Lumaa Date: Fri, 26 Jan 2024 23:01:34 +0100 Subject: [PATCH] Emojis endpoint --- Threaded/Data/MastodonRequest.swift | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Threaded/Data/MastodonRequest.swift b/Threaded/Data/MastodonRequest.swift index b35a118..8e94893 100644 --- a/Threaded/Data/MastodonRequest.swift +++ b/Threaded/Data/MastodonRequest.swift @@ -519,3 +519,18 @@ public enum Trends: Endpoint { } } } + +public enum CustomEmojis: Endpoint { + case customEmojis + + public func path() -> String { + switch self { + case .customEmojis: + "custom_emojis" + } + } + + public func queryItems() -> [URLQueryItem]? { + nil + } +}