A self taught programmer with a passion to learn and update my skills.
- Calgary, Alberta
Pinned Loading
-
-
-
-
Remove / in Spark Java (Allow with /...
Remove / in Spark Java (Allow with / and without /) 1Spark.before((req, res) -> {
2String path = req.pathInfo();
3if (path.endsWith("/") && path.length() != 1) // length prevents redirect on homepage http://example.com/ <--
4res.redirect(path.substring(0, path.length() - 1));
5 -
0 contributions in the last year
Day of Week | April Apr | May May | June Jun | July Jul | August Aug | September Sep | October Oct | November Nov | December Dec | January Jan | February Feb | March Mar | |||||||||||||||||||||||||||||||||||||||||
Sunday Sun | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Monday Mon | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Tuesday Tue | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Wednesday Wed | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Thursday Thu | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Friday Fri | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Saturday Sat |
Less
No contributions.
Low contributions.
Medium-low contributions.
Medium-high contributions.
High contributions.
More
Contribution activity
April 2025
samritbk has no activity
yet for this period.