stupid-kv/vweb_example.v
2022-03-07 17:57:52 +01:00

17 lines
226 B
V

module main
import vweb
struct App {
vweb.Context
}
fn main() {
mut app := &App{}
vweb.run_at(app, family: .ip, host: 'localhost', port: 8082) ?
}
pub fn (mut app App) index() vweb.Result {
return app.text('World')
}