feat: add locally syncing and watchdog
This commit is contained in:
@@ -9,21 +9,6 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// 0: unspecified
|
||||
// 1: video
|
||||
// 2: presentation
|
||||
// 3: internet URL
|
||||
func categorizeFilemode(ext string) database.MediaType {
|
||||
switch ext {
|
||||
case ".mp4", ".mov", ".avi", ".mkv", ".webm", ".m4a":
|
||||
return database.Video
|
||||
case ".pptx", ".ppt", ".key", ".odp":
|
||||
return database.Presentation
|
||||
default:
|
||||
return database.Unspecified
|
||||
}
|
||||
}
|
||||
|
||||
func spawnApiRoutes(api *gin.RouterGroup /* env runtime.Environment,*/, db *gorm.DB) {
|
||||
// prefix: api
|
||||
// Display the information on what is going on at the moment
|
||||
|
||||
Reference in New Issue
Block a user