Skip to content
Permalink
Browse files

fix for urlpath

  • Loading branch information...
noqqe committed Aug 19, 2016
1 parent 1affe5d commit 4713c9a38e7a5fe13a9b30cc7927a78f0c1300ab
Showing with 9 additions and 9 deletions.
  1. +2 −2 README.md
  2. +7 −7 nichtparasoup.py
@@ -56,11 +56,11 @@ visiting the sites on crawler
Port: 5000
IP: 0.0.0.0
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
Urlpath: sfw
Urlpath: /sfw
```

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

### cache
@@ -273,13 +273,13 @@ class NichtParasoup(object):
# init webserver with routing
def __init__(self):
self.url_map = Map([
Rule('/' + urlpath + '/', endpoint='root'),
Rule('/' + urlpath + '/status', endpoint='cache_status'),
Rule('/' + urlpath + '/get', endpoint='cache_get'),
Rule('/' + urlpath + '/imagelist', endpoint='show_imagelist'),
Rule('/' + urlpath + '/blacklist', endpoint='show_blacklist'),
Rule('/' + urlpath + '/flush', endpoint='flush'),
Rule('/' + urlpath + '/reset', endpoint='reset'),
Rule(urlpath + '/', endpoint='root'),
Rule(urlpath + '/status', endpoint='cache_status'),
Rule(urlpath + '/get', endpoint='cache_get'),
Rule(urlpath + '/imagelist', endpoint='show_imagelist'),
Rule(urlpath + '/blacklist', endpoint='show_blacklist'),
Rule(urlpath + '/flush', endpoint='flush'),
Rule(urlpath + '/reset', endpoint='reset'),
])

# proxy call to the wsgi_app

0 comments on commit 4713c9a

Please sign in to comment.
You can’t perform that action at this time.