1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: init_once() => init_server(); init() => before_request()

This commit is contained in:
Alexander Medvednikov
2021-04-15 06:27:24 +03:00
parent 3a134acc5a
commit a18f85c8cd
9 changed files with 26 additions and 24 deletions

View File

@@ -148,7 +148,7 @@ fn new_gen_vc(flag_options FlagOptions) &GenVC {
}
// WebhookServer init
pub fn (mut ws WebhookServer) init_once() {
pub fn (mut ws WebhookServer) init_server() {
mut fp := flag.new_flag_parser(os.args.clone())
flag_options := parse_flags(mut fp)
ws.gen_vc = new_gen_vc(flag_options)
@@ -156,9 +156,11 @@ pub fn (mut ws WebhookServer) init_once() {
// ws.gen_vc = new_gen_vc(flag_options)
}
/*
pub fn (mut ws WebhookServer) init() {
// ws.init_once()
}
*/
pub fn (mut ws WebhookServer) index() {
eprintln('WebhookServer.index() called')