forked from wikimedia/ores
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
112 additions
and
133 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
from flask import render_template | ||
|
||
from . import scores | ||
from . import ui | ||
from . import v1 | ||
from . import v2 | ||
|
||
|
||
def configure(config, bp, score_processor): | ||
|
||
@bp.route("/", methods=["GET"]) | ||
def index(): | ||
return ui.render_template("home.html") | ||
return render_template("home.html") | ||
|
||
bp = scores.configure(config, bp, score_processor) | ||
bp = ui.configure(config, bp) | ||
bp = v1.configure(config, bp, score_processor) | ||
bp = v2.configure(config, bp, score_processor) | ||
|
||
return bp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from flask import render_template | ||
|
||
from . import scores | ||
|
||
|
||
def configure(config, bp, score_processor): | ||
|
||
@bp.route("/v1/", methods=["GET"]) | ||
def v1_index(): | ||
return render_template("v1.html") | ||
|
||
bp = scores.configure(config, bp, score_processor) | ||
|
||
return bp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from flask import render_template | ||
|
||
from . import scores | ||
|
||
|
||
def configure(config, bp, score_processor): | ||
|
||
@bp.route("/v2/", methods=["GET"]) | ||
def v2_index(): | ||
return render_template("v2.html") | ||
|
||
bp = scores.configure(config, bp, score_processor) | ||
|
||
return bp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="https://wikimedia-ui.wmflabs.org/MW/mediawiki.min.css"> | ||
</head> | ||
<body> | ||
<style type="text/css"> | ||
body { | ||
max-width: 50em; | ||
margin: 1em auto; | ||
} | ||
</style> | ||
<p> | ||
This is the base of the "v1" interface for ORES' API. See | ||
<a href="/v1/scores/">/v1/scores</a> for a list of supported Wikis. | ||
</p> | ||
<p> | ||
For more information, see <a href="//meta.wikimedia.org/wiki/ORES">meta.wikimedia.org/wiki/ORES</a>. | ||
</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="https://wikimedia-ui.wmflabs.org/MW/mediawiki.min.css"> | ||
</head> | ||
<body> | ||
<style type="text/css"> | ||
body { | ||
max-width: 50em; | ||
margin: 1em auto; | ||
} | ||
</style> | ||
<p> | ||
This is the base of the "v2" interface for ORES' API. See | ||
<a href="/v2/scores/">/v2/scores</a> for a list of supported Wikis. | ||
</p> | ||
<p> | ||
For more information, see <a href="//meta.wikimedia.org/wiki/ORES">meta.wikimedia.org/wiki/ORES</a>. | ||
</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters