Refactor codebase and removed leftover development code

This commit is contained in:
2024-04-27 16:07:07 +07:00
parent a539e0a2bf
commit 5cf1aacf23
26 changed files with 63 additions and 120 deletions

View File

@ -3,6 +3,11 @@ package initialisation
import (
"encoding/json"
"errors"
"io"
"net/http"
"os"
"path/filepath"
"github.com/fossyy/filekeeper/db"
"github.com/fossyy/filekeeper/logger"
"github.com/fossyy/filekeeper/middleware"
@ -11,10 +16,6 @@ import (
"github.com/fossyy/filekeeper/types/models"
"github.com/google/uuid"
"gorm.io/gorm"
"io"
"net/http"
"os"
"path/filepath"
)
var log *logger.AggregatedLogger

View File

@ -2,18 +2,19 @@ package uploadHandler
import (
"errors"
"github.com/fossyy/filekeeper/db"
"github.com/fossyy/filekeeper/handler/upload/initialisation"
"github.com/fossyy/filekeeper/logger"
"github.com/fossyy/filekeeper/middleware"
"github.com/fossyy/filekeeper/session"
filesView "github.com/fossyy/filekeeper/view/upload"
"io"
"net/http"
"os"
"path/filepath"
"strconv"
"sync"
"github.com/fossyy/filekeeper/db"
"github.com/fossyy/filekeeper/handler/upload/initialisation"
"github.com/fossyy/filekeeper/logger"
"github.com/fossyy/filekeeper/middleware"
"github.com/fossyy/filekeeper/session"
filesView "github.com/fossyy/filekeeper/view/upload"
)
var log *logger.AggregatedLogger