Files
Stella/Sources/stella/Controllers/OpenApi/UtilController.swift
2025-05-15 22:14:00 -04:00

15 lines
334 B
Swift

import Vapor
struct UtilController: RouteCollection {
func boot(routes: any RoutesBuilder) throws {
let group = routes.grouped("v3", "util")
group.post("country", "get", use: self.getCountry)
}
@Sendable
func getCountry(req: Request) async throws -> String {
"{\"country\": \"us\"}"
}
}