Skip to content

Commit

Permalink
Remove pages support
Browse files Browse the repository at this point in the history
  • Loading branch information
David Zhang committed Sep 4, 2024
1 parent 18d405c commit 07e4a3b
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 1,419 deletions.
1 change: 0 additions & 1 deletion Procfile.dev
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
web: AIRWAY_ENV=local air
css: npx tailwindcss -i ./app/assets/stylesheets/application.css -o ./public/assets/application.css --watch
9 changes: 0 additions & 9 deletions app/pages/home_page/index_action.go

This file was deleted.

3 changes: 0 additions & 3 deletions config/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ import (

"github.com/daqing/airway/app/api/up_api"
"github.com/daqing/airway/app/api/user_api"
"github.com/daqing/airway/app/pages/home_page"
)

func Routes(r *gin.Engine) {
r.GET("/", home_page.IndexAction)

apiRoutes(r)
}

Expand Down
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ func main() {

r := app.Router()

r.Static("/assets", "./public/assets")

r.LoadHTMLGlob("app/views/**/*")

r.Use(cors.Default())

config.Routes(r)
Expand Down
Loading

0 comments on commit 07e4a3b

Please sign in to comment.