Apollo Router (Rust Plugin)
Get token
- Set up a service and a token. If you still need one, follow Getting Started.
Configuration
plugins:
inigo.middleware:
token: "YOUR-INIGO-SERVICE-TOKEN"
Plugin Registration
use anyhow::Result;
use apollo_router::register_plugin;
use inigo_rs::Middleware;
register_plugin!("inigo", "middleware", Middleware);
fn main() -> Result<()> {
apollo_router::main()
}