Skip to content

Commit 852b0f2

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 2998696 commit 852b0f2

6 files changed

Lines changed: 1 addition & 7037 deletions

File tree

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22

33
[README_EN](https://github.com/aurora-develop/aurora/blob/main/README_EN.md)
44

5-
6-
# Web端
7-
8-
访问http://你的服务器ip:8080/web
9-
10-
11-
### 注:仅ip属地支持免登录使用ChatGpt可以使用
12-
135
## Deploy
146

157

README_EN.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
# AURORA
22

3-
(Free GPT-3.5 with UI) Supports the use of GPT-3.5 through access calls.
3+
Supports the use of GPT-3.5 through access calls.
44

55
# Communication Group
66
https://t.me/aurora_develop
77

8-
# Web Interface
9-
Access http://your-server-ip:8080/web and fill in the server's http://your-server-ip:8080 on the web settings page.
10-
![web usage](https://jsd.cdn.zzko.cn/gh/xiaozhou26/tuph@main/images/2024-04-07%20112100.png)
11-
12-
### Note: Only users in IP regions that support login-free use of ChatGpt can use this (it's also possible to bypass restrictions by customizing Baseurl).
13-
148
## Deployment
159

1610
### Deployment on Vercel

main.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ package main
22

33
import (
44
"aurora/initialize"
5-
"embed"
6-
"io/fs"
7-
"log"
8-
"net/http"
95
"os"
106

117
"github.com/gin-gonic/gin"
@@ -14,17 +10,9 @@ import (
1410
"github.com/joho/godotenv"
1511
)
1612

17-
//go:embed web/*
18-
var staticFiles embed.FS
19-
2013
func main() {
2114
gin.SetMode(gin.ReleaseMode)
2215
router := initialize.RegisterRouter()
23-
subFS, err := fs.Sub(staticFiles, "web")
24-
if err != nil {
25-
log.Fatal(err)
26-
}
27-
router.StaticFS("/web", http.FS(subFS))
2816

2917
_ = godotenv.Load(".env")
3018
host := os.Getenv("SERVER_HOST")

web/avatar.png

-431 KB
Binary file not shown.

web/icon.png

-10 KB
Binary file not shown.

0 commit comments

Comments
 (0)