Files
bamort/backend/importer/routes.go
T
2025-12-29 18:13:24 +01:00

21 lines
527 B
Go

package importer
import (
"github.com/gin-gonic/gin"
)
func RegisterRoutes(r *gin.RouterGroup) {
charGrp := r.Group("/importer")
// Import routes
charGrp.POST("/upload", UploadFiles)
charGrp.POST("/spells/csv", ImportSpellCSVHandler)
// 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)
}