mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: recursive handle_static with mime types
This commit is contained in:

committed by
Alexander Medvednikov

parent
031f13ad11
commit
6294c7878e
@ -17,8 +17,7 @@ fn main() {
|
||||
}
|
||||
|
||||
pub fn (app mut App) init() {
|
||||
app.vweb.serve_static('/css.css', 'static/css.css')
|
||||
app.vweb.serve_static('/jquery.js', 'static/jquery.js')
|
||||
app.vweb.handle_static('.')
|
||||
}
|
||||
|
||||
pub fn (app mut App) json_endpoint() {
|
||||
|
Reference in New Issue
Block a user