Current section
37 Versions
Jump to
Current section
37 Versions
Compare versions
3
files changed
+11
additions
-5
deletions
| @@ -26,7 +26,7 @@ | |
| 26 26 | <<"mix.exs">>,<<"README.md">>,<<"package.json">>]}. |
| 27 27 | {<<"licenses">>,[<<"MIT">>]}. |
| 28 28 | {<<"links">>, |
| 29 | - [{<<"Docs">>,<<"https://hexdocs.pm/thesis/0.0.4/api-reference.html">>}, |
| 29 | + [{<<"Docs">>,<<"https://hexdocs.pm/thesis/0.0.5/api-reference.html">>}, |
| 30 30 | {<<"GitHub">>,<<"https://github.com/infinite_red/thesis">>}]}. |
| 31 31 | {<<"maintainers">>, |
| 32 32 | [<<"Jamon Holmgren">>,<<"Ken Miller">>,<<"Daniel Berkompas">>]}. |
| @@ -52,4 +52,4 @@ | |
| 52 52 | [{<<"app">>,<<"plug">>}, |
| 53 53 | {<<"optional">>,false}, |
| 54 54 | {<<"requirement">>,<<"~> 1.0">>}]}]}. |
| 55 | - {<<"version">>,<<"0.0.4">>}. |
| 55 | + {<<"version">>,<<"0.0.5">>}. |
| @@ -4,16 +4,22 @@ defmodule Thesis.Router do | |
| 4 4 | quote do |
| 5 5 | use Phoenix.Router |
| 6 6 | |
| 7 | - pipeline :thesis_assets do |
| 7 | + pipeline :thesis_pipeline do |
| 8 8 | plug Plug.Static, at: "/thesis", from: :thesis, gzip: true, |
| 9 9 | cache_control_for_etags: "public, max-age=86400", |
| 10 10 | headers: [{"access-control-allow-origin", "*"}] |
| 11 | + |
| 12 | + plug :fetch_session |
| 13 | + plug :fetch_flash |
| 14 | + plug :put_secure_browser_headers |
| 15 | + plug :allow_all_origins |
| 11 16 | end |
| 12 17 | |
| 13 18 | scope "/thesis", Thesis do |
| 14 | - pipe_through :thesis_assets |
| 19 | + pipe_through :thesis_pipeline |
| 15 20 | |
| 16 21 | get "/thesis-editor.js", ApiController, :assets |
| 22 | + |
| 17 23 | put "/update", ApiController, :update |
| 18 24 | end |
| 19 25 | end |
| @@ -1,6 +1,6 @@ | |
| 1 1 | defmodule Thesis.Mixfile do |
| 2 2 | use Mix.Project |
| 3 | - @version "0.0.4" |
| 3 | + @version "0.0.5" |
| 4 4 | |
| 5 5 | def project do |
| 6 6 | [ |