1
0
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:
jilio
2019-07-31 11:10:53 +07:00
committed by Alexander Medvednikov
parent 031f13ad11
commit 6294c7878e
2 changed files with 62 additions and 15 deletions

View File

@ -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() {