mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-04 07:01:42 +00:00
23 lines
434 B
JavaScript
23 lines
434 B
JavaScript
/*\
|
|
title: $:/core/modules/server/routes/get-favicon.js
|
|
type: application/javascript
|
|
module-type: route
|
|
|
|
GET /favicon.ico
|
|
|
|
\*/
|
|
"use strict";
|
|
|
|
exports.methods = ["GET"];
|
|
|
|
exports.path = /^\/favicon.ico$/;
|
|
|
|
exports.info = {
|
|
priority: 100
|
|
};
|
|
|
|
exports.handler = function(request,response,state) {
|
|
var buffer = state.wiki.getTiddlerText("$:/favicon.ico","");
|
|
state.sendResponse(200,{"Content-Type": "image/x-icon"},buffer,"base64");
|
|
};
|