Surface/ios/Runner/Service/Attachment.swift

15 lines
332 B
Swift
Raw Normal View History

2024-12-14 16:52:42 +00:00
//
// Attachment.swift
// Runner
//
// Created by LittleSheep on 2024/12/14.
//
import Foundation
func getAttachmentUrl(for identifier: String) -> String {
let serverBaseUrl = "https://api.sn.solsynth.dev"
return identifier.starts(with: "http") ? identifier : "\(serverBaseUrl)/cgi/uc/attachments/\(identifier)"
}