Vapor integration #12
daniele99999999
started this conversation in
General
Replies: 1 comment 2 replies
-
There isn't any special Vapor integration. You would use the library like normal. If you're using Vapor, a simple route would look something like this for app.on(.GET, ["html"]) { (request) -> String in
return #html {
html {
body {
h1("Hello World!")
}
}
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just find this library and i would like to test it. There is somewhere an example of a Vapor integration?
Beta Was this translation helpful? Give feedback.
All reactions