mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
Implement deletion token toggle & master
This commit is contained in:
@@ -51,8 +51,9 @@ func Serve() error {
|
||||
v1Route := apiRoute.Group("/v1")
|
||||
{
|
||||
v1Route.GET("/info", func(ctx *fasthttp.RequestCtx) {
|
||||
jsonData, _ := json.Marshal(map[string]string{
|
||||
"version": static.Version,
|
||||
jsonData, _ := json.Marshal(map[string]interface{}{
|
||||
"version": static.Version,
|
||||
"deletionTokens": config.Current.DeletionTokens,
|
||||
})
|
||||
ctx.SetBody(jsonData)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user