Skip to content

Commit

Permalink
[server] Minor tweaks to the new FileData API URLs
Browse files Browse the repository at this point in the history
- Start with leading slash for easier greppability
- Omit trailing slash for consistency

No production clients are using this yet, so should be safe.
  • Loading branch information
mnvr committed Aug 13, 2024
1 parent 28a97a3 commit d9d4ffa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/cmd/museum/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,11 @@ func main() {
privateAPI.GET("/files/preview/:fileID", fileHandler.GetThumbnail)
privateAPI.GET("/files/preview/v2/:fileID", fileHandler.GetThumbnail)

privateAPI.PUT("/files/data/", fileHandler.PutFileData)
privateAPI.POST("files/data/fetch", fileHandler.GetFilesData)
privateAPI.GET("files/data/fetch", fileHandler.GetFileData)
privateAPI.GET("/files/data/preview-upload-url/", fileHandler.GetPreviewUploadURL)
privateAPI.GET("/files/data/preview/", fileHandler.GetPreviewURL)
privateAPI.PUT("/files/data", fileHandler.PutFileData)
privateAPI.POST("/files/data/fetch", fileHandler.GetFilesData)
privateAPI.GET("/files/data/fetch", fileHandler.GetFileData)
privateAPI.GET("/files/data/preview-upload-url", fileHandler.GetPreviewUploadURL)
privateAPI.GET("/files/data/preview", fileHandler.GetPreviewURL)

privateAPI.POST("/files", fileHandler.CreateOrUpdate)
privateAPI.POST("/files/copy", fileHandler.CopyFiles)
Expand Down

0 comments on commit d9d4ffa

Please sign in to comment.