Saving thumbnails on disk
This commit is contained in:
4
main.go
4
main.go
@@ -6,7 +6,6 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/bootdotdev/learn-file-storage-s3-golang-starter/internal/database"
|
||||
"github.com/google/uuid"
|
||||
|
||||
"github.com/joho/godotenv"
|
||||
_ "github.com/lib/pq"
|
||||
@@ -29,8 +28,6 @@ type thumbnail struct {
|
||||
mediaType string
|
||||
}
|
||||
|
||||
var videoThumbnails = map[uuid.UUID]thumbnail{}
|
||||
|
||||
func main() {
|
||||
godotenv.Load(".env")
|
||||
|
||||
@@ -119,7 +116,6 @@ func main() {
|
||||
mux.HandleFunc("POST /api/video_upload/{videoID}", cfg.handlerUploadVideo)
|
||||
mux.HandleFunc("GET /api/videos", cfg.handlerVideosRetrieve)
|
||||
mux.HandleFunc("GET /api/videos/{videoID}", cfg.handlerVideoGet)
|
||||
mux.HandleFunc("GET /api/thumbnails/{videoID}", cfg.handlerThumbnailGet)
|
||||
mux.HandleFunc("DELETE /api/videos/{videoID}", cfg.handlerVideoMetaDelete)
|
||||
|
||||
mux.HandleFunc("POST /admin/reset", cfg.handlerReset)
|
||||
|
||||
Reference in New Issue
Block a user