Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F5665627
index.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
387 B
Referenced Files
None
Subscribers
None
index.ts
View Options
import
Router
from
"@koa/router"
;
import
{
Middlewares
}
from
"sealious"
;
import
{
MainView
}
from
"./common/main-view"
;
import
mountAutoRoutes
from
"./routes"
;
export
const
mainRouter
=
(
router
:
Router
)
:
void
=>
{
router
.
get
(
"/"
,
Middlewares
.
extractContext
(),
async
(
ctx
)
=>
{
ctx
.
body
=
MainView
(
ctx
);
});
router
.
use
(
Middlewares
.
extractContext
());
mountAutoRoutes
(
router
);
};
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sat, Jun 7, 23:22 (5 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
723917
Default Alt Text
index.ts (387 B)
Attached To
Mode
rPLAY Sealious playground
Attached
Detach File
Event Timeline
Log In to Comment