mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
vweb: remove init_server() from all examples, tutorials, and tests
This commit is contained in:
parent
f879b3e221
commit
80976e640c
7 changed files with 30 additions and 55 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue