refactoring

This commit is contained in:
folex
2019-08-16 12:27:30 +03:00
parent 50747bbcd3
commit b85eea0963
8 changed files with 94 additions and 60 deletions

View File

@ -1,8 +1,8 @@
import {Action, decode, FetchRequest, PostRequest} from "./request";
import {PostResponse, Message, FetchResponse, UnknownResponse} from "./response";
import {addMessage, getMessages, getPostsCount, initTables} from "./database";
import {PostResponse, UnknownResponse} from "./response";
import {addMessage, createScheme, getMessages, getPostsCount} from "./model";
initTables();
createScheme();
// main handler for an application
export function handler(input: string): string {