/Ash.ts

A minimal micro micro framework for web servers implemented in ( TypeScript )

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Ash.ts

A minimal micro micro framework for web servers implemented in ( TypeScript )

config.ash

a config.ash file must be present in the file requiring Ash.ts example:

{
  "port": 8000,
  "proto": "http",
}

handlers

to route a url you need to add a js file containg it's handler under ./handlers dir with the name of the url example:

// - handlers/index.js
// name the file index for /
// the function that gets called is always 'handler' so be sure to include it
function handler(request, response) {
  response.write("Hello, World!");
  response.end();
}