Skip to content

Commit

Permalink
Added default redirect to Monkey Island
Browse files Browse the repository at this point in the history
  • Loading branch information
danielguardicore committed Aug 22, 2016
1 parent 67d7740 commit ceabd8d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion monkey_island/cc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import array
import struct
from shutil import copyfile
from flask import Flask, request, abort, send_from_directory
from flask import Flask, request, abort, send_from_directory, redirect
from flask.ext import restful
from flask.ext.pymongo import PyMongo
from flask import make_response
Expand Down Expand Up @@ -387,6 +387,11 @@ def send_admin(path):
return send_from_directory('admin/ui', path)


@app.route("/")
def send_to_default():
return redirect('/admin/index.html')


DEFAULT_REPRESENTATIONS = {'application/json': output_json}
api = restful.Api(app)
api.representations = DEFAULT_REPRESENTATIONS
Expand Down

0 comments on commit ceabd8d

Please sign in to comment.