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
package myApp | |
object MyApp { | |
def main(args: Array[String]): Unit = { | |
val greeter = new Greeter() | |
greeter.Greet | |
} |
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
import os | |
from flask import Flask | |
from flask.ext import restful | |
from controllers.login import Login | |
app = Flask(__name__, static_folder='static', static_url_path='') | |
app.secret_key = os.urandom(24) | |
# Add a route for the site root, which simply spits back the index.html page |
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
from flask.ext.restful import reqparse, Resource | |
from flask import session | |
class Login(Resource): | |
def __init__(self): | |
super(Login, self).__init__() | |
def get(self): | |
# Parse arguments |