Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
koko
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
koko
Commits
2fa3940c
Commit
2fa3940c
authored
Jun 11, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 兼容之前api
parent
f3ad8f3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
server.go
pkg/httpd/server.go
+3
-3
No files found.
pkg/httpd/server.go
View file @
2fa3940c
...
@@ -43,9 +43,9 @@ func StartHTTPServer() {
...
@@ -43,9 +43,9 @@ func StartHTTPServer() {
router
.
PathPrefix
(
"/static/"
)
.
Handler
(
http
.
StripPrefix
(
"/static/"
,
fs
))
router
.
PathPrefix
(
"/static/"
)
.
Handler
(
http
.
StripPrefix
(
"/static/"
,
fs
))
router
.
Handle
(
"/socket.io/"
,
server
)
router
.
Handle
(
"/socket.io/"
,
server
)
router
.
HandleFunc
(
"/
kok
o/elfinder/sftp/{host}/"
,
AuthDecorator
(
sftpHostFinder
))
router
.
HandleFunc
(
"/
coc
o/elfinder/sftp/{host}/"
,
AuthDecorator
(
sftpHostFinder
))
router
.
HandleFunc
(
"/
kok
o/elfinder/sftp/"
,
AuthDecorator
(
sftpFinder
))
router
.
HandleFunc
(
"/
coc
o/elfinder/sftp/"
,
AuthDecorator
(
sftpFinder
))
router
.
HandleFunc
(
"/
kok
o/elfinder/sftp/connector/{host}/"
,
router
.
HandleFunc
(
"/
coc
o/elfinder/sftp/connector/{host}/"
,
AuthDecorator
(
sftpHostConnectorView
))
.
Methods
(
"GET"
,
"POST"
)
AuthDecorator
(
sftpHostConnectorView
))
.
Methods
(
"GET"
,
"POST"
)
addr
:=
net
.
JoinHostPort
(
conf
.
BindHost
,
conf
.
HTTPPort
)
addr
:=
net
.
JoinHostPort
(
conf
.
BindHost
,
conf
.
HTTPPort
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment