Skip to content

main #

fn do #

fn do() !

fn main #

fn main()

fn new_server #

fn new_server(paths []string) FileServer

struct FileServer #

struct FileServer {
	vweb.Context
	auth auth.Authenticator
}

fn (FileServer) before_request #

fn (mut server FileServer) before_request()

fn (FileServer) get_access_token #

fn (server FileServer) get_access_token() ?

fn (FileServer) authenticate_user #

fn (app FileServer) authenticate_user() ?

fn (FileServer) serve #

fn (mut server FileServer) serve() !

fn (FileServer) index #

fn (mut server FileServer) index() vweb.Result

fn (FileServer) file #

fn (mut server FileServer) file() vweb.Result