mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 15:30:05 +00:00
add proxy server for dynamic api endpoint handling and auth
This commit is contained in:
20
proxy/main.go
Normal file
20
proxy/main.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
if ok := godotenv.Load(); ok != nil {
|
||||
panic(".env not found")
|
||||
}
|
||||
|
||||
InitDB()
|
||||
err := run()
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user