Documentation Index
Fetch the complete documentation index at: https://mintlify.com/juanjh1/asimilation/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Theasi object is the main server instance of the Asimilation framework. It provides methods to configure your server settings and start the HTTP server.
Type Definition
Methods
setup()
Configures the server port and base path before starting the server.The port number on which the server will listen for incoming requests.
The base path for all routes. Use an empty string
"" for no base path.This method does not return a value.
run()
Starts the HTTP server and begins listening for incoming requests.This method does not return a value.
You must call
setup() before calling run() to configure the port and base path.urlManager()
Returns the route manager instance for programmatic route manipulation.The route manager interface that allows you to manage routes programmatically.
use()
Intended for adding global middleware to the application.setUrlPrefix()
Intended for setting a URL prefix for all routes.The prefix to prepend to all route URLs.
Complete Example
Related
url
Route manager for registering paths
RouteModule
Organize routes with nested modules

