Skip to content

Commit 4713c9a

Browse files
committedAug 19, 2016
fix for urlpath
1 parent 1affe5d commit 4713c9a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ visiting the sites on crawler
5656
Port: 5000
5757
IP: 0.0.0.0
5858
Useragent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25
59-
Urlpath: sfw
59+
Urlpath: /sfw
6060
```
6161

6262
the `Urlpath` parameter specifies where the application should listen on.
63-
For example the value `sfw` would configure the webserver listening on
63+
For example the value `/sfw` would configure the webserver listening on
6464
`http://localhost:5000/sfw/`
6565

6666
### cache

‎nichtparasoup.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,13 @@ class NichtParasoup(object):
273273
# init webserver with routing
274274
def __init__(self):
275275
self.url_map = Map([
276-
Rule('/' + urlpath + '/', endpoint='root'),
277-
Rule('/' + urlpath + '/status', endpoint='cache_status'),
278-
Rule('/' + urlpath + '/get', endpoint='cache_get'),
279-
Rule('/' + urlpath + '/imagelist', endpoint='show_imagelist'),
280-
Rule('/' + urlpath + '/blacklist', endpoint='show_blacklist'),
281-
Rule('/' + urlpath + '/flush', endpoint='flush'),
282-
Rule('/' + urlpath + '/reset', endpoint='reset'),
276+
Rule(urlpath + '/', endpoint='root'),
277+
Rule(urlpath + '/status', endpoint='cache_status'),
278+
Rule(urlpath + '/get', endpoint='cache_get'),
279+
Rule(urlpath + '/imagelist', endpoint='show_imagelist'),
280+
Rule(urlpath + '/blacklist', endpoint='show_blacklist'),
281+
Rule(urlpath + '/flush', endpoint='flush'),
282+
Rule(urlpath + '/reset', endpoint='reset'),
283283
])
284284

285285
# proxy call to the wsgi_app

0 commit comments

Comments
 (0)