Browse Source

all urls changes to https

master
Christian Müller 11 years ago
parent
commit
0dfbfc0824
  1. 18
      API.md
  2. 2
      resources/public/js/themes.js
  3. 4
      settings

18
API.md

@ -27,7 +27,7 @@ To register as a publisher and gain access to NoteHub API, please <a href="mailt
A simple `GET` request to the following URL: A simple `GET` request to the following URL:
http://www.notehub.org/api/note https://www.notehub.org/api/note
with the following parameters: with the following parameters:
@ -43,8 +43,8 @@ Example:
{ {
note: "markdown source", note: "markdown source",
title: "Lorem Ipsum.", title: "Lorem Ipsum.",
longURL: "http://www.notehub.org/2014/1/3/lorem-ipsum", longURL: "https://www.notehub.org/2014/1/3/lorem-ipsum",
shortURL: "http://www.notehub.org/0vrcp", shortURL: "https://www.notehub.org/0vrcp",
statistics: { statistics: {
published: "2014-1-3", published: "2014-1-3",
edited: "2014-1-12", edited: "2014-1-12",
@ -65,7 +65,7 @@ The note ID is a string, containing the date of publishing and a few first words
A note must be created by a `POST` request to the following URL: A note must be created by a `POST` request to the following URL:
http://www.notehub.org/api/note https://www.notehub.org/api/note
with the following parameters: with the following parameters:
@ -96,8 +96,8 @@ Example:
{ {
noteID: "2014/1/3/lorem-ipsum", noteID: "2014/1/3/lorem-ipsum",
longURL: "http://www.notehub.org/2014/1/3/lorem-ipsum", longURL: "https://www.notehub.org/2014/1/3/lorem-ipsum",
shortURL: "http://www.notehub.org/0vrcp", shortURL: "https://www.notehub.org/0vrcp",
status: { status: {
success: true, success: true,
comment: "some server message" comment: "some server message"
@ -110,7 +110,7 @@ The status object serves the same purpose as in the case of note retrieval.
To update a note, an `PUT` request must be issued to the following URL: To update a note, an `PUT` request must be issued to the following URL:
http://www.notehub.org/api/note https://www.notehub.org/api/note
with the following parameters: with the following parameters:
@ -135,8 +135,8 @@ The response of the server will contain the fields `longURL`, `shortURL`, `statu
Example: Example:
{ {
longURL: "http://www.notehub.org/2014/1/3/lorem-ipsum", longURL: "https://www.notehub.org/2014/1/3/lorem-ipsum",
shortURL: "http://www.notehub.org/0vrcp", shortURL: "https://www.notehub.org/0vrcp",
status: { status: {
success: true, success: true,
comment: "some server message" comment: "some server message"

2
resources/public/js/themes.js

@ -84,7 +84,7 @@ var vars = {
'@link_hover': themes[ui.theme].link.hover '@link_hover': themes[ui.theme].link.hover
}; };
var fontURL = "http://fonts.googleapis.com/" + var fontURL = "https://fonts.googleapis.com/" +
"css?family=PT+Serif:700|Noticia+Text:700%s" + "css?family=PT+Serif:700|Noticia+Text:700%s" +
"&subset=latin,cyrillic", "&subset=latin,cyrillic",
injection = ""; injection = "";

4
settings

@ -1,3 +1 @@
max-title-length = 40 max-title-length = 40
prod-domain = http://www.notehub.org
dev-domain = http://localhost:8080
Loading…
Cancel
Save