新增修改更新api

This commit is contained in:
jiayuqi7813
2022-07-02 22:16:50 +08:00
parent 99ae909180
commit 9aa58a6812
2 changed files with 3 additions and 3 deletions

View File

@@ -64,13 +64,13 @@ func Initrouter() {
{
// 创建新题目
manager.POST("/challenge", admin.NewChallenge)
// 删除题目 暂未测试
// 删除题目 测试通过,但是分数不会同步删除
manager.DELETE("/challenge/:id", admin.DelChallenge)
// 更新题目信息 暂未测试
// 更新题目信息
manager.PUT("/challenge/:id", admin.EditChallenge)
//创建新公告
manager.POST("/notice", api.AddNewNotices)
//删除公告 暂未测试
//删除公告
manager.DELETE("/notice/:id", api.DelNotice)
}

BIN
snctf.db

Binary file not shown.