Logo
Explore Help
Sign In
darkhelm/notifications-api
1
0
Fork 0
You've already forked notifications-api
mirror of https://github.com/GSA/notifications-api.git synced 2026-09-09 12:29:51 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
3d56393b8d51e69c47df881c2162d4182bd9ed12
notifications-api/app/main/views/index.py

13 lines
246 B
Python
Raw Normal View History

Basic commit to add get pages showing - bootstrap script - run script - couple of views - basic config
2015-12-10 10:56:59 +00:00
from flask import jsonify
from .. import main
@main.route('/', methods=['GET'])
Implement a JWT header into base client - adds a base client - adds a notifications client These do not proxy onto genuine methods. This pull request is the basic implication of the API Client. Still needs a few things before is ready, notably proper logging and actual API endpoints to hook into. Basic premise is to deliver the JWT tokens required for Notify API authentication so we can discuss the implementation/premise.
2015-12-11 16:57:00 +00:00
def get_index():
return jsonify(result="hello world"), 200
@main.route('/', methods=['POST'])
def post_index():
Basic commit to add get pages showing - bootstrap script - run script - couple of views - basic config
2015-12-10 10:56:59 +00:00
return jsonify(result="hello world"), 200
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 464ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API