Add: modify review

This commit is contained in:
2021-12-13 05:27:12 +08:00
parent 12739be2f5
commit 80462efebc
7 changed files with 198 additions and 5 deletions

View File

@@ -95,6 +95,8 @@ func NewAPI(config Config) (*API, error) {
// review
apiMux.HandleFunc("/insert_review", api.HandleInsertReview)
apiMux.HandleFunc("/get_reviews_on_file", api.HandleGetReviewsOnFile)
apiMux.HandleFunc("/get_review", api.HandleGetReview)
apiMux.HandleFunc("/update_review", api.HandleUpdateReview)
// below needs token
apiMux.HandleFunc("/walk", api.HandleWalk)
apiMux.HandleFunc("/reset", api.HandleReset)