mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
resp with json
This commit is contained in:
parent
22244ddd37
commit
816d92badf
1 changed files with 2 additions and 3 deletions
|
@ -19,8 +19,7 @@ proc createUpdateRoutes*() =
|
|||
token - string - required via header
|
||||
name - string - old file name via header
|
||||
name - string - new file name via header
|
||||
returns:
|
||||
200 - file renamed successfully
|
||||
returns: JSON
|
||||
]#
|
||||
put "/api/v1/newFileName":
|
||||
var user = newUser()
|
||||
|
@ -51,4 +50,4 @@ proc createUpdateRoutes*() =
|
|||
file.path = newPath
|
||||
file.name = newName
|
||||
db.update(file)
|
||||
resp Http200, "File renamed.\n"
|
||||
resp Http200, "[{}]\n", "application/json"
|
||||
|
|
Loading…
Add table
Reference in a new issue