feat: bootstrap temporserv project scaffold
Add the initial project blueprint, Go backend skeleton, frontend app shell, database schema draft, and local development/deployment files.
This commit is contained in:
26
internal/subsonic/service.go
Normal file
26
internal/subsonic/service.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package subsonic
|
||||
|
||||
type Envelope struct {
|
||||
SubsonicResponse Response `json:"subsonic-response"`
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
Status string `json:"status"`
|
||||
Version string `json:"version"`
|
||||
Type string `json:"type"`
|
||||
Server string `json:"serverVersion"`
|
||||
OpenAPI bool `json:"openSubsonic"`
|
||||
}
|
||||
|
||||
func PingResponse() Envelope {
|
||||
return Envelope{
|
||||
SubsonicResponse: Response{
|
||||
Status: "ok",
|
||||
Version: "1.16.1",
|
||||
Type: "temporserv",
|
||||
Server: "0.1.0",
|
||||
OpenAPI: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user