Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmingHub/Sming
/ onIndex
Function
onIndex
samples/HttpServer_ConfigNetwork/app/application.cpp:35–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
#endif
34
35
void onIndex(HttpRequest& request, HttpResponse& response)
36
{
37
response.sendFile(
"index.html"
);
38
}
39
40
int onIpConfig(HttpServerConnection& connection, HttpRequest& request, HttpResponse& response)
41
{
Callers
nothing calls this directly
Calls
1
sendFile
Method · 0.45
Tested by
no test coverage detected