IoT-Simulator/Sources/App/routes.swift

14 lines
245 B
Swift
Raw Normal View History

2024-12-08 20:38:43 +00:00
import Vapor
import MessageUtils
import Foundation
func routes(_ app: Application) throws {
app.get { req async in
"It works!"
}
app.get("hello") { req async -> String in
return "Hello, world!"
}
}