reorganize
This commit is contained in:
parent
6377b8b6bc
commit
a39b3ea010
|
@ -4,6 +4,7 @@ import (
|
|||
"crazyfs/api/routes"
|
||||
"crazyfs/api/routes/admin"
|
||||
"crazyfs/api/routes/client"
|
||||
"crazyfs/api/routes/file"
|
||||
"crazyfs/config"
|
||||
"crazyfs/logging"
|
||||
"encoding/json"
|
||||
|
@ -28,19 +29,19 @@ var httpRoutes = Routes{
|
|||
"ListDir",
|
||||
"GET",
|
||||
"/api/file/list",
|
||||
routes.ListDir,
|
||||
file.ListDir,
|
||||
},
|
||||
Route{
|
||||
"Download",
|
||||
"GET",
|
||||
"/api/file/download",
|
||||
routes.Download,
|
||||
file.Download,
|
||||
},
|
||||
Route{
|
||||
"Thumbnail",
|
||||
"GET",
|
||||
"/api/file/thumb",
|
||||
routes.Thumbnail,
|
||||
file.Thumbnail,
|
||||
},
|
||||
Route{
|
||||
"Search",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package routes
|
||||
package file
|
||||
|
||||
import (
|
||||
"crazyfs/SharedCache"
|
|
@ -1,4 +1,4 @@
|
|||
package routes
|
||||
package file
|
||||
|
||||
import (
|
||||
"crazyfs/CacheItem"
|
|
@ -1,4 +1,4 @@
|
|||
package routes
|
||||
package file
|
||||
|
||||
import (
|
||||
"bytes"
|
|
@ -0,0 +1,12 @@
|
|||
package file
|
||||
|
||||
import (
|
||||
"crazyfs/logging"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
var log *logrus.Logger
|
||||
|
||||
func init() {
|
||||
log = logging.GetLogger()
|
||||
}
|
Loading…
Reference in New Issue