Files
bamort/backend/importer/routes.go
T

21 lines
527 B
Go
Raw Normal View History

2025-07-24 07:39:43 +02:00
package importer
import (
"github.com/gin-gonic/gin"
)
func RegisterRoutes(r *gin.RouterGroup) {
charGrp := r.Group("/importer")
2025-12-29 18:13:24 +01:00
// Import routes
2025-07-24 07:39:43 +02:00
charGrp.POST("/upload", UploadFiles)
charGrp.POST("/spells/csv", ImportSpellCSVHandler)
2025-12-29 18:13:24 +01:00
// Export routes
exportGrp := charGrp.Group("/export")
exportGrp.GET("/vtt/:id", ExportCharacterVTTHandler)
exportGrp.GET("/vtt/:id/file", ExportCharacterVTTFileHandler)
exportGrp.GET("/csv/:id", ExportCharacterCSVHandler)
exportGrp.GET("/spells/csv", ExportSpellsCSVHandler)
2025-07-24 07:39:43 +02:00
}