Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix for urlpath
  • Loading branch information
noqqe committed Aug 19, 2016
1 parent 1affe5d commit 4713c9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions nichtparasoup.py
Expand Up @@ -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
Expand Down

0 comments on commit 4713c9a

Please sign in to comment.