添加新接口

This commit is contained in:
tangshuangpku@hotmail.com 2016-06-06 21:43:03 +08:00
parent 533d8d6192
commit c6eb0e4a3f
2 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@
<a href='/user/list/'><i class="fa fa-users"></i> <span class="nav-label">Users</span></a>
</li>
<li id="nav_Notification">
<a href='/notification/list/'><i class="fa fa-envelope"></i> <span class="nav-label">Notification</span></a>
<a href='/notification/'><i class="fa fa-envelope"></i> <span class="nav-label">Notification</span></a>
</li>
<li id="admin">
<a href='/admin/'><i class="fa fa-gears"></i> <span class="nav-label">Admin</span></a>

View File

@ -352,9 +352,9 @@ def userquery():
return userqueryView.as_view()
@app.route("/notification/list/", methods=['GET'])
@app.route("/notification/", methods=['GET'])
@administration_required
def create_notification():
def notification():
return NotificationView.as_view()