File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ ADD ./go.mod ./go.sum /build/
17
17
RUN go mod download
18
18
19
19
COPY . .
20
- COPY --from=builder-frontend /build/dist ./dist
20
+ COPY --from=builder-frontend /build/dist/* ./public/
21
21
22
22
RUN go build -trimpath -ldflags "-s -w" -o /build/bin/rm-schedule
23
23
Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ import (
8
8
)
9
9
10
10
// Router defines the router for this service
11
- func Router (r * iris.Application , frontend * embed.FS ) {
11
+ func Router (r * iris.Application , frontend embed.FS ) {
12
12
api := r .Party ("/api" )
13
13
api .Get ("/schedule" , handler .ScheduleHandler )
14
14
api .Get ("/group_rank_info" , handler .GroupRankInfoHandler )
15
15
api .Get ("/static/*path" , handler .RMStaticHandler )
16
16
api .Get ("/mp/match" , handler .MpMatchHandler )
17
17
api .Get ("/rank" , handler .RankListHandler )
18
18
19
- r .HandleDir ("/" , * frontend , iris.DirOptions {
19
+ r .HandleDir ("/" , frontend , iris.DirOptions {
20
20
IndexName : "index.html" ,
21
- ShowList : true ,
21
+ ShowList : false ,
22
22
Compress : true ,
23
23
})
24
24
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ func main() {
17
17
defer cron .Stop ()
18
18
19
19
r := iris .Default ()
20
- router .Router (r , & frontend )
20
+ router .Router (r , frontend )
21
21
22
22
if err := r .Listen (":8080" ); err != nil {
23
23
panic (err )
You can’t perform that action at this time.
0 commit comments