Add more apis

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-03-30 04:07:34 +08:00
parent 2e4d362ec1
commit 1bb2245c5d
8 changed files with 11282 additions and 631 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ package handler
import (
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"honoka-chan/config"
"honoka-chan/database"
@@ -144,7 +143,7 @@ func ApiHandler(ctx *gin.Context) {
}
default:
// fmt.Println("Fuck you!")
err = errors.New("invalid option")
// err = errors.New("invalid option")
}
res, err = database.LevelDb.Get([]byte(key))