csv -> xlsx
This commit is contained in:
4
main.go
4
main.go
@@ -4,9 +4,9 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/b2dennis/meshi/csv"
|
||||
"github.com/b2dennis/meshi/gintemplrenderer"
|
||||
"github.com/b2dennis/meshi/ui/pages"
|
||||
"github.com/b2dennis/meshi/xlsx"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -27,7 +27,7 @@ func main() {
|
||||
}
|
||||
|
||||
func getMenu(c *gin.Context) {
|
||||
plan, err := csv.Load()
|
||||
plan, err := xlsx.Load()
|
||||
if err != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": "couldn't load menu csv"})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user