Skip to content

Commit

Permalink
[server] Minor tweaks to the new FileData API URLs (#2689)
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.

Tested the two embedding related ones on localhost.
  • Loading branch information
mnvr authored Aug 13, 2024
2 parents 8a67eb7 + d9d4ffa commit c6bdeeb
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 c6bdeeb

Please sign in to comment.