mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 17:04:22 +00:00
Restructure project: Move server-side files to a dedicated 'server' directory
This commit is contained in:
parent
7a5ad4bfcc
commit
8ea5a7a25b
27 changed files with 2 additions and 1 deletions
|
|
@ -160,6 +160,7 @@ func serve(protocol, port string) {
|
||||||
|
|
||||||
func serveHTTP(socketServer *socketio.Server, serveHTTPS bool, port string) {
|
func serveHTTP(socketServer *socketio.Server, serveHTTPS bool, port string) {
|
||||||
http.Handle("/socket.io/", socketServer)
|
http.Handle("/socket.io/", socketServer)
|
||||||
|
http.Handle("/", http.FileServer(http.Dir("static")))
|
||||||
|
|
||||||
if serveHTTPS {
|
if serveHTTPS {
|
||||||
httpsAddr := ":" + port
|
httpsAddr := ":" + port
|
||||||
|
|
@ -46,7 +46,7 @@ func NewDBClient() (DBClient, error) {
|
||||||
return NewMongoClient(dbUri)
|
return NewMongoClient(dbUri)
|
||||||
|
|
||||||
case "sqlite":
|
case "sqlite":
|
||||||
return NewSQLiteClient("db.sqlite3")
|
return NewSQLiteClient("db/db.sqlite3")
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("unsupported database type: %s", DBtype)
|
return nil, fmt.Errorf("unsupported database type: %s", DBtype)
|
||||||
BIN
server/songs/Chiquitita.wav
Normal file
BIN
server/songs/Chiquitita.wav
Normal file
Binary file not shown.
BIN
server/songs/Dancing Queen.wav
Normal file
BIN
server/songs/Dancing Queen.wav
Normal file
Binary file not shown.
BIN
server/songs/Jolene.wav
Normal file
BIN
server/songs/Jolene.wav
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue