Allow refreshes on other URLs too.
This commit is contained in:
parent
19a9f24d3d
commit
e790e8ac57
2 changed files with 6 additions and 3 deletions
|
|
@ -9,7 +9,7 @@
|
|||
import
|
||||
os, strutils, times, md5, strtabs, cgi, math, db_sqlite,
|
||||
scgi, jester, asyncdispatch, asyncnet, cache, sequtils,
|
||||
parseutils, utils, random, rst, ranks, recaptcha, json
|
||||
parseutils, utils, random, rst, ranks, recaptcha, json, re
|
||||
|
||||
import redesign/threadlist except User
|
||||
import redesign/[category, postlist]
|
||||
|
|
@ -1068,8 +1068,6 @@ routes:
|
|||
additionalHeaders = genRSSHeaders(c), showRssLinks = true)
|
||||
resp data
|
||||
|
||||
get "/karax/":
|
||||
resp readFile("redesign/karax.html")
|
||||
get "/karax/nimforum.css":
|
||||
resp readFile("redesign/nimforum.css"), "text/css"
|
||||
get "/karax/nimcache/forum.js":
|
||||
|
|
@ -1077,6 +1075,7 @@ routes:
|
|||
get "/karax/images/crown.png":
|
||||
resp readFile("redesign/images/crown.png"), "image/png"
|
||||
|
||||
|
||||
get "/karax/threads.json":
|
||||
var
|
||||
start = getInt(@"start", 0)
|
||||
|
|
@ -1154,6 +1153,8 @@ routes:
|
|||
|
||||
resp $(%list), "application/json"
|
||||
|
||||
get re"/karax/(.+)?":
|
||||
resp readFile("redesign/karax.html")
|
||||
|
||||
get "/threadActivity.xml":
|
||||
createTFD()
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
<title>The Nim programming language forum</title>
|
||||
|
||||
<base href="/karax/">
|
||||
|
||||
<link rel="stylesheet" href="nimforum.css">
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.12/css/all.css" integrity="sha384-G0fIWCsCzJIMAVNQPfjH08cyYaUtMwjJwqiRKxxE/rx96Uroj1BtIQ6MLJuheaO9" crossorigin="anonymous">
|
||||
<link rel="icon" href="images/favicon.png">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue