#!/usr/bin/env python
# -*- coding: utf-8 -*-

import _env  # noqa

from _base import BaseHandler, LoginHandler
from misc._route import route


@route('/login')
class Login(BaseHandler):
    def get(self):
        self.render()


@route('/reg')
class Reg(BaseHandler):
    def get(self):
        self.render()


@route('/')
class Index(BaseHandler):
    def get(self):
        self.render()


@route('/course')
class Course(BaseHandler):
    def get(self):
        self.render()


@route('/logout')
class Logout(LoginHandler):
    def get(self):
        self.clear_cookie('user')
        self.redirect('/')
