Reorganization of backend + new routes
This commit is contained in:
@@ -8,7 +8,8 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"fr.latosa-escrima/api/core"
|
||||
"fr.latosa-escrima/core"
|
||||
"fr.latosa-escrima/core/models"
|
||||
"fr.latosa-escrima/utils"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
"github.com/google/uuid"
|
||||
@@ -95,7 +96,7 @@ func HandleUpload(w http.ResponseWriter, r *http.Request) {
|
||||
}.Respond(w, http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
media := &core.Media{
|
||||
media := &models.Media{
|
||||
AuthorID: id,
|
||||
Type: fileHeader.Header.Get("Content-Type"),
|
||||
Alt: "To be implemented",
|
||||
|
||||
Reference in New Issue
Block a user