Restructure project: Move server-side files to a dedicated 'server' directory

This commit is contained in:
Chigozirim Igweamaka 2025-04-07 02:27:59 +01:00
parent 7a5ad4bfcc
commit 8ea5a7a25b
27 changed files with 2 additions and 1 deletions

View file

@ -160,6 +160,7 @@ func serve(protocol, port string) {
func serveHTTP(socketServer *socketio.Server, serveHTTPS bool, port string) {
http.Handle("/socket.io/", socketServer)
http.Handle("/", http.FileServer(http.Dir("static")))
if serveHTTPS {
httpsAddr := ":" + port

View file

@ -46,7 +46,7 @@ func NewDBClient() (DBClient, error) {
return NewMongoClient(dbUri)
case "sqlite":
return NewSQLiteClient("db.sqlite3")
return NewSQLiteClient("db/db.sqlite3")
default:
return nil, fmt.Errorf("unsupported database type: %s", DBtype)

BIN
server/songs/Chiquitita.wav Normal file

Binary file not shown.

Binary file not shown.

BIN
server/songs/Jolene.wav Normal file

Binary file not shown.