File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-node@v4
15+ with :
16+ node-version : 20
17+ cache : npm
18+ - run : npm ci
19+ - run : npm run typecheck
20+ - run : npm test
Original file line number Diff line number Diff line change 11# Avalanche Canada SMS Service
22
3+ [ ![ Tests] ( https://github.com/GenerationSoftware/avalanche-canada-sms/actions/workflows/test.yml/badge.svg )] ( https://github.com/GenerationSoftware/avalanche-canada-sms/actions/workflows/test.yml )
4+
35A serverless application that lets users text their GPS coordinates to a phone number and receive a summary of current avalanche conditions from [ Avalanche Canada] ( https://avalanche.ca ) for that location.
46
57## How It Works
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export type Env = {
1414const app = new Hono < { Bindings : Env } > ( ) ;
1515
1616app . route ( "/sms" , smsRoutes ) ;
17- app . route ( "/admin " , adminRoutes ) ;
17+ app . route ( "/" , adminRoutes ) ;
1818app . route ( "/" , healthRoutes ) ;
1919
2020export default app ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ <h1>Avalanche SMS</h1>
4545 var ov = document . getElementById ( 'overall' ) ;
4646 ov . className = 'overall loading' ;
4747 ov . textContent = 'Checking...' ;
48- fetch ( '/admin/ status' ) . then ( function ( r ) { return r . json ( ) ; } ) . then ( function ( data ) {
48+ fetch ( '/status' ) . then ( function ( r ) { return r . json ( ) ; } ) . then ( function ( data ) {
4949 ov . className = 'overall ' + data . overall ;
5050 ov . textContent = labels [ data . overall ] || data . overall ;
5151 var container = document . getElementById ( 'services' ) ;
You can’t perform that action at this time.
0 commit comments