diff --git a/couchpotato/__init__.py b/couchpotato/__init__.py index 655caadb..85f4097b 100644 --- a/couchpotato/__init__.py +++ b/couchpotato/__init__.py @@ -22,3 +22,17 @@ def page_not_found(error): index_url = url_for('web.index') url = request.path[len(index_url):] return redirect(index_url + '#' + url) + + +@web.route('/exit') +@requires_auth +def exit(): + # stopping code + pass + + +@web.route('/restart') +@requires_auth +def restart(): + # restart code + pass