ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
176 stars 7 forks source link

[BUG] Images with a name starting with "blog" is not found #11

Closed ThomasTJdev closed 6 years ago

ThomasTJdev commented 6 years ago

Due to the following route, pictures with a name starting with blog will not be found in the /public/images/ folder.

get "/blog":
    createTFD()
    resp genMain(c, genBlogAllPages(c))

  get re"/blog/*.":
    createTFD()
    let blogid = getValue(db, sql"SELECT id FROM blog WHERE url = ?", c.req.path.replace("/blog/", ""))
    resp genPageBlog(c, blogid)
ThomasTJdev commented 6 years ago

Fixed in commit d4be66bf5445a8449fc9c90935548ed6e25e77e3.