vweb: remove init_server() from all examples, tutorials, and tests

This commit is contained in:
Alexander Medvednikov 2021-08-03 16:03:16 +03:00
parent f879b3e221
commit 80976e640c
7 changed files with 30 additions and 55 deletions

View file

@ -23,10 +23,6 @@ fn main() {
vweb.run(&App{}, port)
}
pub fn (mut app App) init_server() {
app.handle_static('.', false)
}
['/users/:user']
pub fn (mut app App) user_endpoint(user string) vweb.Result {
id := rand.intn(100)