Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (22 sloc) 491 Bytes
<?php
// Load Slim
require 'Slim/Slim.php';
$app = new Slim();
// Functions
//GET route
$app->get('/', function () {
// Require HTML Template
require('templates/main.php');
});
// Generate Passcode
$app->post('/passcode', function () {
// Include function to generate APRS Code
require('aprs_func.php');
// Store Passcode
$passcode = aprspass($_POST['callsign']);
// Load Page
require('templates/passcode.php');
});
// Run slim
$app->run();
?>