Added news sorting and image support
This commit is contained in:
5
main.go
5
main.go
@ -13,11 +13,14 @@ func main(){
|
||||
Views: engine,
|
||||
})
|
||||
app.Static("/", "./public")
|
||||
app.Static("/images", "./content/images")
|
||||
|
||||
app.Get("/", routes.IndexRoute)
|
||||
app.Get("/news", routes.NewsRoute)
|
||||
app.Get("/news/:id", routes.PostRoute)
|
||||
app.Get("*", func(c *fiber.Ctx) error {
|
||||
return routes.RenderError(c, 404)
|
||||
})
|
||||
|
||||
log.Fatal(app.Listen(":9878"))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user