impl Account Table
This commit is contained in:
14
Sources/stella/Controllers/OpenApi/UtilController.swift
Normal file
14
Sources/stella/Controllers/OpenApi/UtilController.swift
Normal file
@@ -0,0 +1,14 @@
|
||||
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\"}"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user