forked from MatthiasMasiero/CompSci-RP-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
17fb670
commit 4a1f501
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1 @@ | ||
from . import forgot_password, login, logout, register, student, teacher | ||
from . import forgot_password, login, logout, register, student, teacher, version |
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,13 @@ | ||
from flask import Response | ||
|
||
from app import app | ||
from main import VERSION | ||
|
||
AUTHORS = "Originally By Matthias Masiero and Jaiman Munshi\nUpdated by Connor Slade" | ||
|
||
|
||
@app.get("/version") | ||
def version(): | ||
res = Response(f"CompSci-RP-Website v{VERSION}\n{AUTHORS}") | ||
res.mimetype = "text/plain" | ||
return res |