-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod.ts
36 lines (34 loc) · 941 Bytes
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Mixon - Type-Safe API & Workflow Microframework for Deno
*
* This module exports the core functionality of the Mixon framework,
* including the App factory, pattern matching utilities, and type validation.
*
* @module mixon
*/
// Export everything from the main library file
export * from "./lib/server/mixon.ts";
/**
* Creates a new Mixon application instance.
*
* The App function is the main entry point for creating a Mixon application.
* It returns an instance with methods for defining routes, adding middleware,
* and starting the server.
*
* @example
* ```typescript
* import { App } from "jsr:@srdjan/mixon";
*
* const app = App();
*
* app.get("/hello", (ctx) => {
* ctx.response = new Response("Hello World");
* });
*
* app.listen(3000);
* ```
*
* @returns {AppInstance} A new Mixon application instance
*/
import { App as MixonApp } from "./lib/server/mixon.ts";
export const App = MixonApp;