Skip to content

Tips: serverino with multiple source file

Andrea Fontana edited this page May 28, 2023 · 1 revision
module test;
import serverino;

@endpoint void f1(Request r, Output o) { ... }
module other;
import serverino;

@endpoint void f2(Request r, Output o) { ... }
module main;
import serverino;
import test, other;

mixin ServerinoMain!(other, test); // Current module is always processed