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 { NgModule } from '@angular/core'; | |
import { Routes, RouterModule } from '@angular/router'; | |
import { FooComponent } from 'app/foo/foo.component'; | |
import { BarComponent } from 'app/bar/bar.component'; | |
import { AuthGuard } from 'app/guard/auth.guard'; | |
import { PubComponent } from 'app/pub/pub.component'; | |
import { NotFoundComponent } from 'app/not-found/not-found.component'; | |
const routes: Routes = [ | |
{ |
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
#coding:utf-8 | |
import os,io | |
from flask import Flask, request, redirect, url_for,Response,render_template,send_file,make_response,jsonify,send_from_directory | |
from werkzeug import secure_filename | |
from flask_cors import CORS,cross_origin | |
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) | |
APP_ROOT = os.path.dirname(os.path.abspath(__file__)) | |
UPLOAD_FOLDER = os.path.join(APP_ROOT, 'static\\upload') |