File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ func web() {
61
61
})
62
62
})
63
63
r .GET ("/view/*path" , func (c * gin.Context ) {
64
- c .File (filepath .Join (conf .GoFile ,filepath .Clean (c .Param ("path" ))))
64
+ c .File (filepath .Join (conf .GoFile , filepath .Clean (c .Param ("path" ))))
65
65
})
66
66
r .GET ("/download/*path" , func (c * gin.Context ) {
67
- cPath := filepath .Clean (c .Param ("path" ))
68
- c .FileAttachment (filepath .Join (conf .GoFile ,cPath ), filepath .Base (cPath ))
67
+ cPath := filepath .Clean (c .Param ("path" ))
68
+ c .FileAttachment (filepath .Join (conf .GoFile , cPath ), filepath .Base (cPath ))
69
69
})
70
70
r .GET ("/d/*path" , func (c * gin.Context ) {
71
71
rawPath := c .Param ("path" )
@@ -226,8 +226,8 @@ func main() {
226
226
if err == nil {
227
227
conf .GoFile = cwd
228
228
}
229
- }
230
- conf .GoFile = filepath .Clean (conf .GoFile )+ "/"
229
+ }
230
+ conf .GoFile = filepath .Clean (conf .GoFile ) + "/"
231
231
fmt .Println ("Run Directory:" + conf .GoFile )
232
232
fmt .Println ("goFile Port is " + conf .GoFilePort )
233
233
web ()
You can’t perform that action at this time.
0 commit comments