basic functions working
This commit is contained in:
parent
abc6159044
commit
ffeeae5702
22 changed files with 420 additions and 129 deletions
|
|
@ -50,6 +50,20 @@ var prefixRoutes = []route{
|
|||
indexHandler)),
|
||||
[]string{"GET", "POST"},
|
||||
},
|
||||
{
|
||||
core.UploadPrefix,
|
||||
jwtHandler(
|
||||
authHandler(
|
||||
uploadHandler)),
|
||||
[]string{"GET", "POST"},
|
||||
},
|
||||
{
|
||||
core.NewPrefix,
|
||||
jwtHandler(
|
||||
authHandler(
|
||||
newDirHandler)),
|
||||
[]string{"GET", "POST"},
|
||||
},
|
||||
{
|
||||
core.MovePrefix,
|
||||
jwtHandler(
|
||||
|
|
@ -69,7 +83,7 @@ var prefixRoutes = []route{
|
|||
jwtHandler(
|
||||
authHandler(
|
||||
dirHandler)),
|
||||
[]string{"GET", "POST", "PUT", "DELETE"},
|
||||
[]string{"GET"},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue