Skip to content

Commit

Permalink
#27 TkMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 7, 2017
1 parent 4fd4fa2 commit 123c931
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/io/jare/tk/TkApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.takes.facets.fork.FkHost;
import org.takes.facets.fork.FkRegex;
import org.takes.facets.fork.TkFork;
import org.takes.facets.fork.TkMethods;
import org.takes.facets.forward.TkForward;
import org.takes.misc.Opt;
import org.takes.rs.RsWithBody;
Expand Down Expand Up @@ -185,7 +186,10 @@ private static Take regex(final Base base) throws IOException {
new TkSecure(
new TkFork(
new FkRegex("/domains", new TkDomains(base)),
new FkRegex("/add", new TkAdd(base)),
new FkRegex(
"/add",
new TkMethods(new TkAdd(base), "POST")
),
new FkRegex("/delete", new TkDelete(base))
)
)
Expand Down

0 comments on commit 123c931

Please sign in to comment.