Browse Source

修复个人材质信息

infish2018 3 months ago
parent
commit
dca1a572a3
2 changed files with 5 additions and 6 deletions
  1. 5 5
      src/api/case.go
  2. 0 1
      src/test/mycase.http

+ 5 - 5
src/api/case.go

@@ -23,11 +23,11 @@ func MyCaseRoute(r *GinRouter) {
 }
 
 func MyMatLib(r *GinRouter) {
-	r.POST("/mymat/create", CreateMyMat)
-	r.POST("/mymat/delete/:id", DeleteMyMat)
-	r.GET("/mymat/list", MatMyList)
-	r.GET("/mymat/detail/:id", MatMyDetail)
-	r.POST("/mymat/update", UpdateMyMat)
+	r.POSTJWT("/mymat/create", CreateMyMat)
+	r.POSTJWT("/mymat/delete/:id", DeleteMyMat)
+	r.GETJWT("/mymat/list", MatMyList)
+	r.GETJWT("/mymat/detail/:id", MatMyDetail)
+	r.POSTJWT("/mymat/update", UpdateMyMat)
 }
 
 func CreateMyMat(c *gin.Context, apictx *ApiSession) (interface{}, error) {

File diff suppressed because it is too large
+ 0 - 1
src/test/mycase.http


Some files were not shown because too many files changed in this diff