Skip to content

Commit

Permalink
Support ?path query (close #260)
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Jan 31, 2022
1 parent b370950 commit 68cb742
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ func query(devMode bool) rex.Handle {
return rex.Status(status, message)
}

if v := ctx.Form.Value("path"); v != "" {
reqPkg.Submodule = utils.CleanPath(v)[1:]
}

var storageType string
if reqPkg.Submodule != "" {
switch path.Ext(pathname) {
Expand Down

0 comments on commit 68cb742

Please sign in to comment.