mirror of
https://github.com/s00500/nodeMessageBoard.git
synced 2024-11-23 11:20:54 +00:00
19 lines
651 B
JavaScript
19 lines
651 B
JavaScript
var server = require("./server");
|
|
var router = require("./route");
|
|
var requestHandlers = require("./requestHandlers");
|
|
|
|
var debug = false;
|
|
|
|
var handle = {}
|
|
handle["/"] = requestHandlers.sendInterface;
|
|
handle["/interface"] = requestHandlers.sendInterface;
|
|
handle["/sprite/emoji.css"] = requestHandlers.sendEmojiCss;
|
|
handle["/sprite/emoji.png"] = requestHandlers.sendEmojiPng;
|
|
handle["/js/jquery-1.12.1.min"] = requestHandlers.sendJquery;
|
|
handle["/js/jquery-ui.js"] = requestHandlers.sendJqueryUI;
|
|
handle["/css/bootstrap.min.css"] = requestHandlers.sendBootstrap;
|
|
|
|
handle["/clear"] = requestHandlers.sendClear;
|
|
|
|
server.start(router.route,handle,debug);
|