Initial /video/[id] endpoint

This commit is contained in:
Carl Pearson
2024-09-07 06:17:21 -06:00
parent 9ca89f5509
commit 3fb3ab496f
3 changed files with 36 additions and 1 deletions

View File

@@ -90,6 +90,7 @@ func main() {
e.GET("/download", downloadHandler, authMiddleware)
e.POST("/download", downloadPostHandler, authMiddleware)
e.GET("/videos", videosHandler, authMiddleware)
e.GET("/video/:id", videoHandler, authMiddleware)
e.POST("/video/:id/cancel", videoCancelHandler, authMiddleware)
e.POST("/video/:id/restart", videoRestartHandler, authMiddleware)
e.POST("/video/:id/delete", videoDeleteHandler, authMiddleware)
@@ -97,7 +98,6 @@ func main() {
staticGroup := e.Group("/downloads")
staticGroup.Use(authMiddleware)
staticGroup.Static("/", getDownloadDir())
// e.Static("/downloads", getDownloadDir())
store.Options = &sessions.Options{