Skip to content

routing /pagename or /id #1

@gurugeek

Description

@gurugeek

first of all thanks for Essen 👍
This is not really a bug but I wanted to be sure that I didn't get this part wrong. At the moment there is no way to display the page name/id directly in the route right ?

I am using

e.Get("/pages", func(res essen.Response, req essen.Request) {
		page := req.Req.URL.Query().Get("page")

		var a Page

		err := db.QueryRow("SELECT * FROM pages where page = ?", page).Scan(&a.Page, &a.Content, &a.Date)

this works with a route like /pages?page=about but not for /about

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions