|
@@ -17,7 +17,7 @@ func CreateNictRouter(router *GinRouter) {
|
|
|
|
|
|
// dir test/aaa
|
|
|
// file xxx.png
|
|
|
- router.POST("/upload", func(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
+ router.POSTJWT("/upload", func(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
dir := c.PostForm("dir")
|
|
|
file, err := c.FormFile("file")
|
|
|
if err != nil {
|