1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-07-03 02:23:00 +00:00
TiddlyWiki5/core/modules/server/routes/get-library-html.js
jeremy@jermolene.com e9e60063df Fix comment
2022-12-10 14:11:58 +00:00

25 lines
500 B
JavaScript

/*\
title: $:/core/modules/server/routes/get-library-html.js
type: application/javascript
module-type: route
GET /library/{:title}
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.method = "GET";
exports.path = /^\/library$/;
exports.handler = function(request,response,state) {
var text = state.wiki.getTiddlerText("$:/core/templates/library.template.html","");
state.sendResponse(200,{"Content-Type": "text/html"},text,"utf8");
};
}());