Skip to content

Commit

Permalink
jsmod path
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Apr 6, 2022
1 parent 6e4f871 commit f49e8d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.v
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ pub fn (mut app App) mod(name string) vweb.Result {
return $vweb.html()
}

['/jsmod/:name']
pub fn (mut app App) jsmod() {
name := app.req.url.replace('jsmod/', '')[1..]
println('MOD name=$name')
Expand Down

0 comments on commit f49e8d4

Please sign in to comment.