Skip to content

Commit

Permalink
Make common appname - #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Wright committed Feb 26, 2015
1 parent d4dba04 commit ec75311
Show file tree
Hide file tree
Showing 2 changed files with 527 additions and 11 deletions.
28 changes: 17 additions & 11 deletions t/bin/cached_api.pl
Expand Up @@ -3,19 +3,25 @@

use strict;
use Dancer2;
use WebService::Strava::Test::Auth;

my $DEBUG = $ENV{STRAVA_DEBUG} || 0;

# Debug/Dev
if ($DEBUG) {
set logger => 'console';
set log => 'core';
package WebService::Strava::CachedAPI {
use Dancer2;
use WebService::Strava::CachedAPI::Auth;
my $DEBUG = $ENV{STRAVA_DEBUG} || 0;

# Debug/Dev
if ($DEBUG) {
set logger => 'console';
set log => 'core';
}

# Setting it in the config file didn't appear to work.
# Not sure why, normally would use plackup, but unnecessary
# here.
set serializer => 'JSON';
set port => 3001;
}

# Setting it in the config file didn't appear to work.
# Not sure why, normally would use plackup, but unnecessary
# here.
set port => 3001;
WebService::Strava::CachedAPI->to_app;

dance;

0 comments on commit ec75311

Please sign in to comment.