Откат системы шаблонов - удалены все связанные файлы и маршруты

This commit is contained in:
2025-09-01 13:58:05 +04:00
parent 3552110f4e
commit 1b883a6d69

View File

@@ -131,9 +131,7 @@ func (s *Server) setupRoutes() {
protected.PUT("/operations/placements/:id/quantity", s.operationsHandler.UpdateQuantity) protected.PUT("/operations/placements/:id/quantity", s.operationsHandler.UpdateQuantity)
protected.DELETE("/operations/placements/:id", s.operationsHandler.DeletePlacement) protected.DELETE("/operations/placements/:id", s.operationsHandler.DeletePlacement)
// Templates
protected.GET("/templates", s.getTemplates)
protected.POST("/templates/:id/apply", s.applyTemplate)
} }
} }
} }
@@ -154,13 +152,7 @@ func (s *Server) updateOrganization(c *gin.Context) {
c.JSON(http.StatusNotImplemented, gin.H{"error": "Not implemented yet"}) c.JSON(http.StatusNotImplemented, gin.H{"error": "Not implemented yet"})
} }
func (s *Server) getTemplates(c *gin.Context) {
c.JSON(http.StatusNotImplemented, gin.H{"error": "Not implemented yet"})
}
func (s *Server) applyTemplate(c *gin.Context) {
c.JSON(http.StatusNotImplemented, gin.H{"error": "Not implemented yet"})
}
func (s *Server) Start() error { func (s *Server) Start() error {
return s.router.Run(s.config.Server.Host + ":" + s.config.Server.Port) return s.router.Run(s.config.Server.Host + ":" + s.config.Server.Port)