-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added recognition for HTTP-Methods: POST, PUT, DELETE
- Loading branch information
1 parent
aaa9e99
commit cb4eeea
Showing
5 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/de/tlongo/roscoe/routes/SampleDeleteRoute.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package de.tlongo.roscoe.routes; | ||
|
||
import de.tlongo.roscoe.core.RoscoeRoute; | ||
import spark.Request; | ||
import spark.Response; | ||
|
||
/** | ||
* Created by tomas on 11.01.15. | ||
*/ | ||
public class SampleDeleteRoute extends RoscoeRoute { | ||
|
||
@Override | ||
public Object handle(Request request, Response response) { | ||
return "This is a sample delete route."; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/de/tlongo/roscoe/routes/SamplePostRoute.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package de.tlongo.roscoe.routes; | ||
|
||
import de.tlongo.roscoe.core.RoscoeRoute; | ||
import spark.Request; | ||
import spark.Response; | ||
|
||
/** | ||
* Created by tomas on 11.01.15. | ||
*/ | ||
public class SamplePostRoute extends RoscoeRoute { | ||
|
||
@Override | ||
public Object handle(Request request, Response response) { | ||
return "This is a sample post route."; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package de.tlongo.roscoe.routes; | ||
|
||
import de.tlongo.roscoe.core.RoscoeRoute; | ||
import spark.Request; | ||
import spark.Response; | ||
|
||
/** | ||
* Created by tomas on 11.01.15. | ||
*/ | ||
public class SamplePutRoute extends RoscoeRoute { | ||
|
||
@Override | ||
public Object handle(Request request, Response response) { | ||
return "This is a sample put route."; | ||
} | ||
} |