impl Account Table
This commit is contained in:
14
Sources/stella/Controllers/OpenApiController.swift
Normal file
14
Sources/stella/Controllers/OpenApiController.swift
Normal file
@@ -0,0 +1,14 @@
|
||||
import Vapor
|
||||
|
||||
struct OpenApiController: RouteCollection {
|
||||
func boot(routes: any RoutesBuilder) throws {
|
||||
let group = routes.grouped("openapi", "service")
|
||||
try group.register(collection: UtilController())
|
||||
try group.register(collection: AuthController())
|
||||
|
||||
group.post("v3", "log", "writeSdkBasicLog") { req in
|
||||
req.logger.log(level: .debug, .init(stringLiteral: req.body.string ?? ""))
|
||||
return Response()
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user